Page 4 of 12
Re: Eggs
Posted: Tue Jul 06, 2010 11:39 am
by rock5
extremeuser wrote:Getting an error after 10 mins still.
player.lua:1713 bad argument #1 to 'memoryReadIntPtr' ((null))
line 1713 is
local tmpAddress = memoryReadIntPtr(getProc(), addresses.staticbase_char, addresses.charPtr_offset);
What does that have to do with the topic of this thread?
Couldn't be bothered starting your own?
Re: Eggs
Posted: Tue Jul 06, 2010 11:57 am
by extremeuser
i got this error while doing the egg quest from the examples so it was relevant to this post
Re: Eggs
Posted: Tue Jul 06, 2010 1:44 pm
by somberland
Ur game is crashed?
Re: Eggs
Posted: Tue Jul 06, 2010 8:04 pm
by Binafus
Working good now found my problem thanks all.
Re: Eggs
Posted: Wed Jul 07, 2010 4:14 am
by Lorelei
Getting the same error as Extreme. Any ideas?
Re: Eggs
Posted: Wed Jul 07, 2010 8:23 am
by rock5
I just commited revision 470. This includes new quest status functions, new target_Object function, and target_NPC and merchant now use memory addresses.
Because some of the changes may cause some of your "eggs" scripts not to work properly, I've attached my 'Eggs' script which makes use of the new functions.
I'll update the romwiki soon.
Enjoy.
ps. Don't forget to copy the new ingamefunctions folder to your rom addons folder.
** YOU MUST READ THIS **
FOR THIS FILE TO WORK YOU MUST COMPLETE ALL THESE STEPS;
1. UPDATE YOUR BOT TO REVISION 470 OR BETTER.
2. ONLY AFTER YOU HAVE UPDATED THE BOT, COPY THE INGAMEFUNCTIONS FOLDER TO THE GAME ADDON FOLDER. DON'T SKIP THIS STEP BECAUSE THE 470 VERSION OF INGAMEFUNCTIONS IS DIFFERENT THAT THE 469 VERSION.
3. RESTART THE GAME OR TYPE '/script ReloadUI()' TO RELOAD THE UI AND ADDONS.
4. IF YOU DON'T USE THE ENGLISH VERSION OF THE GAME THEN CHANGE LINE 3 OF THIS FILE TO MATCH THE NAME OF THE CHICKEN QUEST IN YOUR LANGUAGE. EG. FOR GERMAN I THINK IT IS
Code: Select all
queststate = getQuestStatus("Eine einfache Aufgabe?")
Then it should work
Re: Eggs
Posted: Wed Jul 07, 2010 9:24 am
by Hunger112
Hmm dont work for me.
He accept the quest and than he speak again and again with her :/
Re: Eggs
Posted: Wed Jul 07, 2010 9:28 am
by Deset
lol hunger112.... i know you
with old waypoint i have no fail since 1h, with rev 470
Re: Eggs
Posted: Wed Jul 07, 2010 9:36 am
by Hunger112
Which waypoints do you use?
The one from epvp.. ?
I think i updated too but now iam not sure
Re: Eggs
Posted: Wed Jul 07, 2010 9:44 am
by rock5
Hunger112 wrote:Hmm dont work for me.
He accept the quest and than he speak again and again with her :/
That's because you didn't update the ingamefunctions. Won't work otherwise.
Copy the ingamefunctions to the game addon folder.
Re: Eggs
Posted: Wed Jul 07, 2010 9:56 am
by Hunger112
Copy the ingamefunctions to the game addon folder. done
Revision 470 done
still dont work xD
Re: Eggs
Posted: Wed Jul 07, 2010 10:10 am
by Deset
After 2h i got a crash now...
but with new rev its much better

with old one i got every 10 minutes a crash
Re: Eggs
Posted: Wed Jul 07, 2010 12:28 pm
by rock5
Hunger112 wrote:Copy the ingamefunctions to the game addon folder. done
Revision 470 done
still dont work xD
Don't forget, to make changes to an addon take effect you need to restart the game or at least execute a '/script ReloadUI()'
Re: Eggs
Posted: Wed Jul 07, 2010 12:55 pm
by Hunger112
i have revision 470 and i make a copy of the ingamfunciton folder and copy it to the addon ordner
but it still dont work and yes i restarted the game
Re: Eggs
Posted: Wed Jul 07, 2010 1:33 pm
by rock5
Hunger112 wrote:i have revision 470 and i make a copy of the ingamfunciton folder and copy it to the addon ordner
but it still dont work and yes i restarted the game
If you've properly updated to revision 470 with no exclamation marks near the files and you copied the ingamefunctions to the addon folder, then it should work. It works perfectly for me.
Please confirm that line 126 of ingamefuctions.lua is;
and line 4 of my hen script is;
Re: Eggs
Posted: Wed Jul 07, 2010 1:46 pm
by Hunger112
by me it is all the same (sry my english isnt that good)
but
adresses.lua isnt green it is red O,o
Re: Eggs
Posted: Wed Jul 07, 2010 1:53 pm
by Deset
still same problem like hunger112
And @hunger112: das liegt daran dass du das mit rom\update.lua geupdatet hast. das ist kein fehler is normal so

Re: Eggs
Posted: Wed Jul 07, 2010 1:59 pm
by extremeuser
got 1 error twice, but doesnt come up often.
[string "...":13: attempt to compare nil with number
Re: Eggs
Posted: Wed Jul 07, 2010 2:03 pm
by rock5
Deset wrote:still same problem like hunger112
And @hunger112: das liegt daran dass du das mit rom\update.lua geupdatet hast. das ist kein fehler is normal so

Wait that gives me an idea. Maybe it has to do with the language. I changed all the ids in the script to names because I wanted to see if it would work which it did but maybe the names are different in your language?
If so, change the names to match the names in your language or try changing the names back to ids.
Re: Eggs
Posted: Wed Jul 07, 2010 2:04 pm
by rock5
extremeuser wrote:got 1 error twice, but doesnt come up often.
[string "...":13: attempt to compare nil with number
That doesn't help unless I know what line number of which file.