Page 34 of 53

Re: Version 7.4.0.2897 progress

Posted: Sun Jul 19, 2020 11:52 am
by Sabrosito
Great job everyone, please some Warmage can help me configure the elite Ligthing Burn Weapon, I can't get the bot to use or renew this ability, I appreciate your kind reply.

Re: Version 7.4.0.2897 progress

Posted: Sun Jul 19, 2020 12:05 pm
by Administrator
Small updates today to address those issues. Looks like the mount uses an entirely separate casting system from everything else. Seems odd to me, but whatever. Please test things out and let me know how it goes.

Re: Version 7.4.0.2897 progress

Posted: Sun Jul 19, 2020 8:12 pm
by Ego95
Small updates today to address those issues. Looks like the mount uses an entirely separate casting system from everything else. Seems odd to me, but whatever. Please test things out and let me know how it goes.
I can confirm that. When I am harvesting items for a quest and I got the last item I'm always using the mount right after clicking the object. The "collecting bar" gets replaced by the mount summoning bar, but you will get the item. Always do this to save time.

Re: Version 7.4.0.2897 progress

Posted: Tue Jul 21, 2020 8:32 am
by Sasuke
another game update....a bit step forward and we come back after game update....
C:/Program Files/micromacro/scripts/rom/functions.lua:1655: bad argument #1 to 'memoryReadBytePtr' ((null)

Re: Version 7.4.0.2897 progress

Posted: Wed Jul 22, 2020 12:34 am
by morc
/Desktop/micromacro/scripts/rom/classes/player.lua:146: attempt to perform arithmetic on local 'playerAddress' (a nil value)

the addrupdate helped me and the mount also works

thank you admin :)

Re: Version 7.4.0.2897 progress

Posted: Wed Jul 22, 2020 6:00 am
by Meyerchen97
2020-07-22 12:58:01 - IGF:\CHARACTER_SELECT.selectedIndex\:IGF [string "local a={CHARACTER_SELECT.selectedIndex} re..."]:1: attempt to index global 'CHARACTER_SELECT' (a nil value)

This error

Re: Version 7.4.0.2897 progress

Posted: Thu Jul 23, 2020 4:03 pm
by Administrator
I updated some addresses and it is currently working fine for me. Are you guys still having those errors?

Re: Version 7.4.0.2897 progress

Posted: Sun Jul 26, 2020 12:43 am
by newb456
Hi,
I cannot start rom/bot ...
the command gitupdate won't work anymore. How to get latest update?

Re: Version 7.4.0.2897 progress

Posted: Sun Jul 26, 2020 2:50 am
by ThulsaDoom
Administrator wrote: Thu Jul 23, 2020 4:03 pm I updated some addresses and it is currently working fine for me. Are you guys still having those errors?
It works fine, thanks.
The problem now is that the inventory or backpack is not updated and the Bot does not take into account the new saved items.

All items that are already in the backpack when launching the Bot, are used without problem.
All the items or objects acquired during the execution of the script are not detected, it is as if they did not exist in the backpack, therefore they cannot be used.

many thanks for your job.

Re: Version 7.4.0.2897 progress

Posted: Sun Jul 26, 2020 4:21 am
by Tomato
New problem since the update today. Yesterday it went without problems. :(
Daily quest flame
2020-07-26 11:15:29 - [string "..."]:2: attempt to call global 'SetCharList' (a nil value)

Re: Version 7.4.0.2897 progress

Posted: Sun Jul 26, 2020 11:01 am
by Administrator
newb456 wrote: Sun Jul 26, 2020 12:43 am Hi,
I cannot start rom/bot ...
the command gitupdate won't work anymore. How to get latest update?
You can't just say it "won't work" if you want help. I need more information than that. You can also just use the download link on the first post of this thread.
The problem now is that the inventory or backpack is not updated and the Bot does not take into account the new saved items.

All items that are already in the backpack when launching the Bot, are used without problem.
All the items or objects acquired during the execution of the script are not detected, it is as if they did not exist in the backpack, therefore they cannot be used.
Thanks for the detailed info; I've patched that up.
2020-07-26 11:15:29 - [string "..."]:2: attempt to call global 'SetCharList' (a nil value)
I can only assume you were using some waypoint script that was trying to switch characters. That function was removed from the game.

Re: Version 7.4.0.2897 progress

Posted: Sun Jul 26, 2020 1:24 pm
by ThulsaDoom
Administrator wrote: Sun Jul 26, 2020 11:01 am
newb456 wrote: Sun Jul 26, 2020 12:43 am Hi,
I cannot start rom/bot ...
the command gitupdate won't work anymore. How to get latest update?
You can't just say it "won't work" if you want help. I need more information than that. You can also just use the download link on the first post of this thread.
The problem now is that the inventory or backpack is not updated and the Bot does not take into account the new saved items.

All items that are already in the backpack when launching the Bot, are used without problem.
All the items or objects acquired during the execution of the script are not detected, it is as if they did not exist in the backpack, therefore they cannot be used.
Thanks for the detailed info; I've patched that up.
2020-07-26 11:15:29 - [string "..."]:2: attempt to call global 'SetCharList' (a nil value)
I can only assume you were using some waypoint script that was trying to switch characters. That function was removed from the game.
Sorry to say it, but the inventory problem still continues.
Also with this change the speedhack function has stopped working.

Thanks

Re: Version 7.4.0.2897 progress

Posted: Sun Jul 26, 2020 2:57 pm
by Administrator
The speedhack seems to be working fine for me, both while walking and mounted. What happens when you try to use it?

I made another update to the inventory stuff that should resolve another case of things not updating as expected. Go ahead and test that for me, please.

Re: Version 7.4.0.2897 progress

Posted: Mon Jul 27, 2020 12:53 pm
by ThulsaDoom
Administrator wrote: Sun Jul 26, 2020 2:57 pm The speedhack seems to be working fine for me, both while walking and mounted. What happens when you try to use it?

I made another update to the inventory stuff that should resolve another case of things not updating as expected. Go ahead and test that for me, please.
No changes on the inventory issue.

Example:

I use the userfunction "userfunction_30daymounts", if there is no not enough material to build Abysmal mount, the script opens a [Horse rental ticket] (if you have it) and a mount appears in the Backpack.
Then call :

Code: Select all

player:mount()
And the bot never uses the mount.
If I stop Rombot and launch it again having the same mount in the inventory, Bot uses it without any issue.

Another example:
There is this code in the profile <onLoad>

Code: Select all

if myClass=="Scout" then
			if 200 > inventory:itemTotalCount("Runic Thorn") then
      				inventory:useItem("Rune Catapult") -- Use Rune War Bow
				yrest(1000)
				RoMScript("UseEquipmentItem(10);")
				yrest(1000)
				inventory:useItem("Arcane Shadows")
				yrest(1000)
				if inventory:getAmmunitionCount() == 0 then
					inventory:useItem("Runic Thorn")
				end
   			end
		end
999 Runic Thorn are created, but Bot doesn't equip it.

Concerning speed() function, when it is called, Runes client crashes.

Thanks

Re: Version 7.4.0.2897 progress

Posted: Mon Jul 27, 2020 9:59 pm
by Administrator
I see. I think the issue is that the inventory will only receive a full automatic update once every ~60 seconds, so if you do something to create/buy an item into your inventory then try to use it right away it won't be seen until the full update comes through. You could probably pop inventory:update() in the script to work around that, but I think I'll try to see if we can latch onto common functionality that might modify inventory contents so it'll be a bit more automatic.


Onto the speedhack. Open up userfunctions/userfunction_speedhack.lua. There should be two lines that contain this:

Code: Select all

local baseSpeed = memoryReadFloat(getProc(), getBaseAddress(addresses.movement_speed.base) + addresses.movement_speed.offset);
Replace both of them with:

Code: Select all

local baseSpeed = memoryReadFloat(getProc(), 0xA0ACF0);
Does the speedhack still crash the client?

Re: Version 7.4.0.2897 progress

Posted: Tue Jul 28, 2020 1:37 am
by ThulsaDoom
Administrator wrote: Mon Jul 27, 2020 9:59 pm I see. I think the issue is that the inventory will only receive a full automatic update once every ~60 seconds, so if you do something to create/buy an item into your inventory then try to use it right away it won't be seen until the full update comes through. You could probably pop inventory:update() in the script to work around that, but I think I'll try to see if we can latch onto common functionality that might modify inventory contents so it'll be a bit more automatic.


Onto the speedhack. Open up userfunctions/userfunction_speedhack.lua. There should be two lines that contain this:

Code: Select all

local baseSpeed = memoryReadFloat(getProc(), getBaseAddress(addresses.movement_speed.base) + addresses.movement_speed.offset);
Replace both of them with:

Code: Select all

local baseSpeed = memoryReadFloat(getProc(), 0xA0ACF0);
Does the speedhack still crash the client?
I did it, adding: inventory:update() before call the mount, but the result is the same, not recognize the mount.

Also, the Bot continues running the waypoints on foot, and after 60 seconds, having the mount in the inventory, still doesn't use when it is called.

Thanks

Re: Version 7.4.0.2897 progress

Posted: Tue Jul 28, 2020 3:52 am
by ThulsaDoom
Please, have a look on this post:
https://forum.runesofmagic.gameforge.c ... -changed/

this change could affect the Bot's behavior.

Re: Version 7.4.0.2897 progress

Posted: Tue Jul 28, 2020 12:16 pm
by ThulsaDoom
Administrator wrote: Mon Jul 27, 2020 9:59 pm Onto the speedhack. Open up userfunctions/userfunction_speedhack.lua. There should be two lines that contain this:

Code: Select all

local baseSpeed = memoryReadFloat(getProc(), getBaseAddress(addresses.movement_speed.base) + addresses.movement_speed.offset);
Replace both of them with:

Code: Select all

local baseSpeed = memoryReadFloat(getProc(), 0xA0ACF0);
Does the speedhack still crash the client?
It works, the change has solved the problem.

Thanks

Re: Version 7.4.0.2897 progress

Posted: Tue Jul 28, 2020 4:40 pm
by Administrator
ThulsaDoom wrote: Tue Jul 28, 2020 1:37 am I did it, adding: inventory:update() before call the mount, but the result is the same, not recognize the mount.

Also, the Bot continues running the waypoints on foot, and after 60 seconds, having the mount in the inventory, still doesn't use when it is called.

Thanks
I identified and fixed another problem bug. In my test case, it is now finding mounts. Give it a shot and let me know if this fixes your issues.

ThulsaDoom wrote: Tue Jul 28, 2020 12:16 pm
Administrator wrote: Mon Jul 27, 2020 9:59 pm Onto the speedhack. Open up userfunctions/userfunction_speedhack.lua. There should be two lines that contain this:

Code: Select all

local baseSpeed = memoryReadFloat(getProc(), getBaseAddress(addresses.movement_speed.base) + addresses.movement_speed.offset);
Replace both of them with:

Code: Select all

local baseSpeed = memoryReadFloat(getProc(), 0xA0ACF0);
Does the speedhack still crash the client?
It works, the change has solved the problem.

Thanks
Now that's odd. Mathematically, they should be the same thing.
0x400000 (Client.exe module start address)
+ 0x609858 (movement speed base)
+ 0x1498 (movement speed offset)
------------
0xA0ACF0


Open up your addresses.lua; what do you have for movement_speed? It should look something like this:

Code: Select all

	movement_speed = {
		base = 0x609858, --[[{movement_speed_base}]]
		offset = 0x1498, --[[{movement_speed_offset}]]
	},
I suppose what could be happening is that running addrupdate modifies your addresses.lua file, which then may be preventing git from making changes to it to pull in the latest updates. Maybe try:

Code: Select all

rom-bot/gitupdate -f

Re: Version 7.4.0.2897 progress

Posted: Wed Jul 29, 2020 1:32 pm
by ThulsaDoom
Administrator wrote: Tue Jul 28, 2020 4:40 pm
I identified and fixed another problem bug. In my test case, it is now finding mounts. Give it a shot and let me know if this fixes your issues.
Yes, mount issue has been solved!

Thanks