ERROR: compare string with number

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
copenhagen69
Posts: 58
Joined: Mon Jul 27, 2009 8:04 pm

ERROR: compare string with number

#1 Post by copenhagen69 » Mon Jul 27, 2009 8:16 pm

Image


any ideas what i should do?

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: ERROR: compare string with number

#2 Post by Administrator » Mon Jul 27, 2009 8:38 pm

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?

copenhagen69
Posts: 58
Joined: Mon Jul 27, 2009 8:04 pm

Re: ERROR: compare string with number

#3 Post by copenhagen69 » Mon Jul 27, 2009 8:52 pm

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

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: ERROR: compare string with number

#4 Post by Administrator » Mon Jul 27, 2009 8:59 pm

Now post a copy of your profile. I'm guessing the problem is probably in the <skills> section.

copenhagen69
Posts: 58
Joined: Mon Jul 27, 2009 8:04 pm

Re: ERROR: compare string with number

#5 Post by copenhagen69 » Mon Jul 27, 2009 9:02 pm

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>

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: ERROR: compare string with number

#6 Post by Administrator » Mon Jul 27, 2009 10:50 pm

Your skills are all screwed up. Fix them.

copenhagen69
Posts: 58
Joined: Mon Jul 27, 2009 8:04 pm

Re: ERROR: compare string with number

#7 Post by copenhagen69 » Tue Jul 28, 2009 8:48 am

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 ....

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: ERROR: compare string with number

#8 Post by d003232 » Tue Jul 28, 2009 9:01 am

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.
The RoM Bot Online Wiki needs your help!

copenhagen69
Posts: 58
Joined: Mon Jul 27, 2009 8:04 pm

Re: ERROR: compare string with number

#9 Post by copenhagen69 » Tue Jul 28, 2009 10:28 am

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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 3 guests