Get actual RoM functions

Talk about anything in Runes of Magic. This does not need to pertain to botting.
Post Reply
Message
Author
User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Get actual RoM functions

#1 Post by Ego95 » Wed Jul 23, 2014 3:38 pm

Hey,

http://runesofmagic.gamepedia.com/List_of_Functions

This is the only webside, I acually know, where you can find functions of Runes of Magic.
The first sentence I read is: "Here's the list of all functions available on the global scope of client 3.0.0.2149.en:"

It's a few years ago the clients newest version was 3.0.0

I think since then, there have been are a lot of functions added. How could I read out all functions? Or who is the owner of that side who would be able to update that?

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: Get actual RoM functions

#2 Post by BlubBlab » Wed Jul 23, 2014 6:01 pm

I think the list is relative on up to date those function were extracted with the help of tools, I think there was an script for that.

The API is hosted by curse an anyone who has a curse ac can add thinks in it, it is a wiki.
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Get actual RoM functions

#3 Post by rock5 » Wed Jul 23, 2014 10:39 pm

That said, the place I find new functions (and how to use functions on the list that have no description) is in the "interface/worldxml" folder which I extract from the "fdb/interface.fdb" file.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: Get actual RoM functions

#4 Post by Ego95 » Sun Jul 27, 2014 2:23 am

Back from holiday. Thank, I'll look, if I can find something interesting in the fdb folder :)

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: Get actual RoM functions

#5 Post by BlubBlab » Fri Aug 15, 2014 8:50 pm

I had today an idea why not scan internal ? The _G has as a table all functions in it so I wrote a small add-on and a waypoint file. I'm sure that there are functions in ROM which aren't used and so invisible for the naked eye. Especially chat and unit functions were interesting.

Unfortunately the private rom servers are down so I could not test it :(
Attachments
test2.xml
waypoint
(391 Bytes) Downloaded 119 times
extract.zip
add-on
(905 Bytes) Downloaded 133 times
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Get actual RoM functions

#6 Post by rock5 » Sat Aug 16, 2014 5:43 am

Good idea. I can do something similar just using commandline and the next command.

Code: Select all

t={} k="nil" repeat k= RoMCode("k="..k.." repeat k,v=next(_G,k) until (k==nil or type(v)==\"function\") a={k}") if k then table.insert(t,k) k="\""..k.."\"" end until k == nil
Then you can sort it, print it or save it.

Code: Select all

table.sort(t)
table.print(t)
table.save(t,"filename")
Things to note:
  • - Seeing as we were talking about functions, I have it return only function names
    - It wont include table functions such as string.find.
    - It will include addon global functions as well. To create a clean game function list you would have to start the game with no addons.
    - It took about 8 minutes to run on my system.
The only problem now is this list wont tell you how to use the functions. I still think searching the worldxml folder is the best way to find functions and how they are used.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: Get actual RoM functions

#7 Post by Ego95 » Sun Aug 17, 2014 4:09 pm

Nice work :) So there are some functions which can't be found on theromwiki.Unfortunately I didn't found anything I was looking for :( I believe there isn't anything for what I wanted to do

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Get actual RoM functions

#8 Post by lisa » Sun Aug 17, 2014 6:38 pm

Ego95 wrote:Nice work :) So there are some functions which can't be found on theromwiki.
Yeah theromwiki and updated by people just like you and me, no one has added every single function to the wiki.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: Get actual RoM functions

#9 Post by BlubBlab » Mon Aug 18, 2014 1:17 am

I think the main thing about it is that the list here : http://runesofmagic.gamepedia.com/List_of_Functions were extracted with help of some tools form the xml and lua files which Rock5 mentioned.

Yeah clearly you don't get much information about functions which weren't used in those files, return values you can try out analysing the real problem are the parameters which those takes, you can only guess on similar functions and going through some try and errors.

Best thing would be copy& paste the list from gamepedia list in a file and compare with what you found and printing the new list.(and when I'm really growing wild I would try to use string.dump(func) and extract some additional information from the bytecode http://sourceforge.net/projects/unluac/ )
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests