Page 1 of 1

ERROR: compare string with number

Posted: Mon Jul 27, 2009 8:16 pm
by copenhagen69
Image


any ideas what i should do?

Re: ERROR: compare string with number

Posted: Mon Jul 27, 2009 8:38 pm
by Administrator
copenhagen69 wrote: any ideas what i should do?
Post in the right section. I had to move this topic.

Open that file and go to line 208. What do you see?

Re: ERROR: compare string with number

Posted: Mon Jul 27, 2009 8:52 pm
by copenhagen69
Administrator wrote:
copenhagen69 wrote: any ideas what i should do?
Post in the right section. I had to move this topic.

Open that file and go to line 208. What do you see?
sorry i figured micromacro support would be the right section :/

ok i updated to rom 2.44
got the same error except for its 210 now and not 208

according to open office ... lines 205-220 say .....

Code: Select all

if( inbattle ) then
				if( inbattle == "true" ) then
					inbattle = true;
				else
					inbattle = false;
				end;
			end

			if( level == nil or level < 1 ) then
				level = 1;
			end

			local baseskill = database.skills[name];
			if( not baseskill ) then
				local err = sprintf("ERROR: \'%s\' is not defined in the database!", name);
				error(err, 0);
			end

Re: ERROR: compare string with number

Posted: Mon Jul 27, 2009 8:59 pm
by Administrator
Now post a copy of your profile. I'm guessing the problem is probably in the <skills> section.

Re: ERROR: compare string with number

Posted: Mon Jul 27, 2009 9:02 pm
by copenhagen69

Code: Select all

- <profile>
- <options>
  <option name="HP_LOW" value="85" /> 
  <option name="HP_LOW_POTION" value="50" /> 
  <option name="MP_LOW_POTION" value="40" /> 
  <option name="COMBAT_TYPE" value="melee" /> 
  <option name="COMBAT_DISTANCE" value="200" /> 
  <option name="ANTI_KS" value="true" /> 
  <option name="WAYPOINTS" value="boars.xml" /> 
  <option name="RETURNPATH" value="boars.xml" /> 
  <option name="PATH_TYPE" value="waypoints" /> 
  <option name="WANDER_RADIUS" value="500" /> 
  <option name="WAYPOINT_DEVIATION" value="50" /> 
  <option name="LOOT" value="true" /> 
  <option name="LOOT_TIME" value="2000" /> 
  <option name="LOOT_DISTANCE" value="100" /> 
  <option name="ENERGY_STORAGE_1" value="mana" /> 
  <option name="ENERGY_STORAGE_2" value="none" /> 
  <option name="POTION_COOLDOWN" value="15" /> 
  <option name="MAX_FIGHT_TIME" value="30" /> 
  <option name="DOT_PERCENT" value="90" /> 
  </options>
- <friends>
  <friend name="friendsname1" /> 
  <friend name="friendsname2" /> 
  <friend name="friendsname3" /> 
  <friend name="friendsname4" /> 
  <friend name="friendsname5" /> 
  <friend name="friendsname6" /> 
  </friends>
- <hotkeys>
  <hotkey name="HP_POTION" key="VK_MINUS" /> 
  <hotkey name="MP_POTION" key="VK_EQUAL" /> 
  <hotkey name="ATTACK" key="VK_1" /> 
  <hotkey name="RES_MACRO" key="VK_0" /> 
  </hotkeys>
- <skills>
  <skill name="KNIGHT_HOLY_STRIKE" hotkey="VK_2" priority="" level="" /> 
  <skill name="" hotkey="" priority="" /> 
  <skill name="" hotkey="" priority="" /> 
  </skills>
  <onDeath>-- Additional Lua code to execute on death pauseOnDeath(); -- Stop the script</onDeath> 
  <onLeaveCombat>-- Additional Lua code to execute after killing an enemy</onLeaveCombat> 
  <onSkillCast>-- Additional Lua code to execute when casting a skill -- Note: arg1 contains the skill being used. -- i.e. arg1.Name will be the name of the skill being cast.</onSkillCast> 
  </profile>

Re: ERROR: compare string with number

Posted: Mon Jul 27, 2009 10:50 pm
by Administrator
Your skills are all screwed up. Fix them.

Re: ERROR: compare string with number

Posted: Tue Jul 28, 2009 8:48 am
by copenhagen69
Administrator wrote:Your skills are all screwed up. Fix them.
how are they all screwed up? and whats screwed up about them?

i took my level 5 knight and put 1 skill on him to see if i could even get it to run and it wont ...
i tried my level 44 mage also with 7 skills and still got the same error ....

Re: ERROR: compare string with number

Posted: Tue Jul 28, 2009 9:01 am
by d003232
copenhagen69 wrote:how are they all screwed up? and whats screwed up about them?
You have emtpy skill there, like:

Code: Select all

<skill name="KNIGHT_HOLY_STRIKE" hotkey="VK_2" priority="" level="" />
  <skill name="" hotkey="" priority="" />
  <skill name="" hotkey="" priority="" /> 
And some '-' in front of some tags. I'm not sure, how the XML parser will read that file. Best is to look at the 'Default.xml' in the profile folder. Or attach your complete profile.

Re: ERROR: compare string with number

Posted: Tue Jul 28, 2009 10:28 am
by copenhagen69
well what is strange is that my buddy sent me his folders and everything with it working fine on his computer ... but wont work on mine ...
i sent him my char profile and it worked just fine on his computer