Page 20 of 53

Re: Version 7.4.0.2897 progress

Posted: Wed Apr 01, 2020 8:17 pm
by Uniden65
So did it work out for you ?

Re: Version 7.4.0.2897 progress

Posted: Thu Apr 02, 2020 12:00 am
by Andre235
The fixaddresses doesn’t work... it’s the main problem in this thread.

Re: Version 7.4.0.2897 progress

Posted: Sun Apr 05, 2020 4:47 am
by beutelbeutelbeutel
beutelbeutelbeutel wrote: Fri Mar 27, 2020 2:47 pm
Andre235 wrote: Fri Mar 27, 2020 11:42 am
beutelbeutelbeutel wrote: Fri Mar 27, 2020 11:15 am Hi there, works fine but i got an error by checking Groupmembername 1
local party1 = GetPartyMemberName(1);
micromacro/scripts/rom/functions.lua:1679: Invalid address

thanks for your help
try adding this to the addresses and please give me a feedback for this:

Code: Select all

	partyIconList_base = 0xA63528,
	partyLeader_address = 0xA27240,
	partyMemberList_address = 0xA647B0,
now i got this micromacro/scripts/rom/functions.lua:110: bad argument #3 to 'readfunc' (number or table expected, got nil)
can anyone help me please?

Re: Version 7.4.0.2897 progress

Posted: Sun Apr 05, 2020 8:44 am
by Andre235
i added the offsets. please give me a feedback :)

Code: Select all

partyIconList_base = 0xA63528,
partyIconList_offset = 0xC,
partyLeader_address = 0xA27240,
partyMemberList_address = 0xA647B0,
partyMemberList_offset = 0x68,

Re: Version 7.4.0.2897 progress

Posted: Sun Apr 05, 2020 9:35 am
by tristanlol
Andre235 wrote: Sun Apr 05, 2020 8:44 am i added the offsets. please give me a feedback :)

Code: Select all

partyIconList_base = 0xA63528,
partyIconList_offset = 0xC,
partyLeader_address = 0xA27240,
partyMemberList_address = 0xA647B0,
partyMemberList_offset = 0x68,
Thanks!! that made partyhealer waypoint work again :P

Re: Version 7.4.0.2897 progress

Posted: Sun Apr 05, 2020 2:09 pm
by Andre235
nice :lol: that makes me very happy :)

Re: Version 7.4.0.2897 progress

Posted: Mon Apr 06, 2020 7:33 am
by lolau51
Andre235 wrote: Sun Apr 05, 2020 8:44 am i added the offsets. please give me a feedback :)

Code: Select all

partyIconList_base = 0xA63528,
partyIconList_offset = 0xC,
partyLeader_address = 0xA27240,
partyMemberList_address = 0xA647B0,
partyMemberList_offset = 0x68,

Where do you need drop this ? i can't find it.

Re: Version 7.4.0.2897 progress

Posted: Mon Apr 06, 2020 8:34 am
by Andre235
I don’t know, what you mean. But these addresses are from my addresses.lua for your addresses.lua...

Re: Version 7.4.0.2897 progress

Posted: Mon Apr 06, 2020 8:42 am
by lolau51
Andre235 wrote: Mon Apr 06, 2020 8:34 am I don’t know, what you mean. But these addresses are from my addresses.lua for your addresses.lua...
also. i need to copy paste in adresses.lua
i will check.
thanks gor you help.

Re: Version 7.4.0.2897 progress

Posted: Mon Apr 06, 2020 9:17 pm
by Sasuke
guys i try to use an old macro for open glorious victory package and guild contribution package (BIG) .....in waypoint player stay stop and use this macro but it's not work and my bot said:
scripts\rom/bot.lua:722: No waypoints to go to in waypoint file.
but no waypoint up and also i'm sure for id packs.....can someone test it pls?
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
while inventory:itemTotalCount(206770) > 0 and inventory:itemTotalCount(0) > 0 do
inventory:useItem(206770);
end
</onLoad>
</waypoints>

Re: Version 7.4.0.2897 progress

Posted: Tue Apr 07, 2020 5:01 am
by KeinPlan
Hi zusammen,

eine Frage hat einer für das craften von Talisman des Gesandten lvl 75 eine vorlage ?

oder ein imgame Makro das den Rucksackplatz 1-30 verkauft in 30 sec. als beispiel.

Gruss
KeinPlan

Google übersetzung:

Hi everyone,

Does anyone have a question for crafting Talisman's envoy LVL 75?

or an imgame macro that sells the backpacking place 1-30 in 30 seconds as an example.

Greeting
No plan

Re: Version 7.4.0.2897 progress

Posted: Thu Apr 09, 2020 6:12 am
by Andre235
updated the inventory.rent.base, bank.rent.base addresses (inventorytotalcount() didn't worked) and added the partyMemberList_offset
addresses.lua
(6.79 KiB) Downloaded 156 times

Re: Version 7.4.0.2897 progress

Posted: Sat Apr 11, 2020 10:41 am
by Ego95
Thanks for your update :)

Do you have any idea why targeting objects does not work for me correctly? I don't know if you also got problems with this.

I always used functions that repeat targeting objects until they gone. At the moment if the game window is in front the bot repeats targeting objects forever but doesn't target anything. If micromacro is in the foreground it has no problem targeting something. That seems really strange to me.

Re: Version 7.4.0.2897 progress

Posted: Sun Apr 12, 2020 5:46 am
by Andre235
I know what you mean, but I have no idea where the problem is. In the Most cases the Casting bar appears and i write a simple function, that targeting/attacking an object up to the point, where the castingbar appears... that works not perfect, but it was enough to me :-)

Re: Version 7.4.0.2897 progress

Posted: Sun Apr 12, 2020 9:32 am
by Administrator
Ego95 wrote: Sat Apr 11, 2020 10:41 am Thanks for your update :)

Do you have any idea why targeting objects does not work for me correctly? I don't know if you also got problems with this.

I always used functions that repeat targeting objects until they gone. At the moment if the game window is in front the bot repeats targeting objects forever but doesn't target anything. If micromacro is in the foreground it has no problem targeting something. That seems really strange to me.
That sounds like it's trying to use the TAB key to target things instead of using the objectlist. Or, maybe it's using macros; I'm not sure. What are you trying to target, and what specific functions are you using?

Re: Version 7.4.0.2897 progress

Posted: Sun Apr 12, 2020 9:54 am
by Ego95
Administrator wrote: Sun Apr 12, 2020 9:32 am
Ego95 wrote: Sat Apr 11, 2020 10:41 am Thanks for your update :)

Do you have any idea why targeting objects does not work for me correctly? I don't know if you also got problems with this.

I always used functions that repeat targeting objects until they gone. At the moment if the game window is in front the bot repeats targeting objects forever but doesn't target anything. If micromacro is in the foreground it has no problem targeting something. That seems really strange to me.
That sounds like it's trying to use the TAB key to target things instead of using the objectlist. Or, maybe it's using macros; I'm not sure. What are you trying to target, and what specific functions are you using?
This is what I use in a few scripts to target harvestable objects in range of 200 from below the ground with flyhack:

Code: Select all

	function item()
		repeat
			local item = player:findNearestNameOrId(123456)
			if item and 200 > distance(item, player) then
				yrest(300)
				teleport(item.X,item.Z,item.Y-30)
				keyboardPress(settings.hotkeys.STRAFF_RIGHT.key)
				keyboardPress(settings.hotkeys.STRAFF_LEFT.key)
				yrest(1000)
				player:target_Object(item.Id)
			end
		until item == nil or distance(item, player) > 200
		teleport(nil, nil, -50, false)
		yrest(300)
	end
But even if I try to target other harvestable objects as you would do usual, it's skipping them (or it does nothing if there is a repeat loop in the function).
But why should it act different when the game is in the background or in the foreground?

Re: Version 7.4.0.2897 progress

Posted: Sun Apr 12, 2020 10:04 am
by ThulsaDoom
Hello;
After this new ROM update, MM crash after few seconds, whith this message:

Code: Select all

Choose your character that you want to play on:

XXXXX
Add prediction for block 235000, branch 0xBC
Add prediction for block 213000, branch 0x29C
Add prediction for block 214000, branch 0x2A4
Game Version is 7.4.0.2908
RoM windows size is 2560x1377, upper left corner at 0,23
Loading profile XXXX.xml
The macro hotkey is F9.
The 'Attack' hotkey is set to 'macro'.
Testing 'ingamefunctions' macro. If it gets stuck here, please update the 'ingamefunctions' by copying the 'ingamefunctions' folder from 'rom/devtools' to the games 'interface/addons' folder.
MACRO Test: ok
The macro hotkey is F9.
The 'Attack' hotkey is set to 'macro'.
No ranged skills specified in profile; Turning COMBAT_RANGED_PULL off.
Maximum range of range attack skills is less than COMBAT_DISTANCE 200. Reducing COMBAT_DISTANCE setting to 50.
[DEBUG] CPU Frequency 10000
The game client did not crash.
Character: XXXXX
2020-04-12 16:59:06 - ...Documents/micromacro/scripts/rom/classes/memdatabase.lua:143: bad argument #1 to 'pairs' (table expected, got number)


Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script>
What is happening?

Thanks

Re: Version 7.4.0.2897 progress

Posted: Sun Apr 12, 2020 3:41 pm
by Administrator
That was my fault; minor bug in the code. Try updating again now and it should be working. That code was added to dynamically add branch predictions at runtime. This should improve speed and reduce system resources of the bot.

Anyone that sees those purple messages about adding predictions, please post those here. They are *not* errors, however, they can be added to the base bot code so that your machine won't have to spend as much time inspecting the memory to find it. The more of those that we add, the better it should work for everyone.

Re: Version 7.4.0.2897 progress

Posted: Mon Apr 13, 2020 4:02 am
by ThulsaDoom
Administrator wrote: Sun Apr 12, 2020 3:41 pm That was my fault; minor bug in the code. Try updating again now and it should be working. That code was added to dynamically add branch predictions at runtime. This should improve speed and reduce system resources of the bot.

Anyone that sees those purple messages about adding predictions, please post those here. They are *not* errors, however, they can be added to the base bot code so that your machine won't have to spend as much time inspecting the memory to find it. The more of those that we add, the better it should work for everyone.
Hello;
Thanks for the update, now targeting objects works well.
But still some issues, trying the new version, MM crashes after few minutes with following messages:

Code: Select all

2020-04-13 10:56:04 - C:/Micromacro/scripts/rom/macros.lua:309: attempt to perform arithmetic on local 'hotkeysTableAddress' (a nil value)
also

Code: Select all

2020-04-13 10:56:08 - C:Micromacro/scripts/rom/macros.lua:151: attempt to perform arithmetic on local 'macro_address' (a nil value)
Thanks for your support and knowledge

Re: Version 7.4.0.2897 progress

Posted: Mon Apr 13, 2020 4:10 am
by morc
Administrator wrote: Sun Apr 12, 2020 3:41 pm That was my fault; minor bug in the code. Try updating again now and it should be working. That code was added to dynamically add branch predictions at runtime. This should improve speed and reduce system resources of the bot.

Anyone that sees those purple messages about adding predictions, please post those here. They are *not* errors, however, they can be added to the base bot code so that your machine won't have to spend as much time inspecting the memory to find it. The more of those that we add, the better it should work for everyone.
Add prediction for block 513000, branch 0x78
Add prediction for block 521000, branch 0x25C
Add prediction for block 226000, branch 0x98
Add prediction for block 229000, branch 0xA4
Add prediction for block 212000, branch 0x29C