Post new topic Reply to topic  [ 8 posts ] 
Author Message
Member
User avatar
Team: Resident Evil
Rank:
Main: topbuzzz
Level: 4589

Joined: Sun Dec 21, 2008 12:31 pm
Posts: 4341
Post Converting XML mods value
In your web inventory XML you will find mods listed as a number. This value is called a bitflag.

convert this number to binary and you can then lookup against this table

23 Super Intelligent
22 Buffered
21 Gyroscopic
20 Forceful
19 Overclocked
18 Transcendental
17 Superconducting
16 Evil
15 Workhorse
14 Rewired
13 Amped
12 Intelligent
11 Docktastic
10 Resonating
9 Sleek
8 Radioactive
7 Amorphous
6 Dynamic
5 Scoped
4 Extended
3 Shielded
2 Composite
1 Miniaturized


so for example in my inventory it might show
<ITEM nm="Mzungu Trading Riposte" eqp="0" capcharge="0" durability="10000" id="4004076" m="2359424"/>

this M value when converted to binary is this:
1001000000000010000000

which has mods at position 8, 19, 22 (radio, overclocked, buffered)

I dont expect anyone to make much sense out of this except a few guys but it took me a bunch of time to figure out so thought id share, and maybe helpful for your own xml imports into excel or whatever.

_________________
Image


Last edited by sabre198 on Tue Mar 26, 2013 9:31 am, edited 1 time in total.

Tue Mar 26, 2013 7:06 am
Profile WWW
over 9000!
User avatar
Team: Traders
Rank: Director
Main: enkelin
Level: 5594

Joined: Wed Aug 01, 2007 12:28 pm
Posts: 11097
Post Re: Converting XML mods value
Nice!

_________________
Hi, I'm Anil, a long-time player turned developer. I am Star Sonata's lead content developer, which means that I run weekly dev meetings and make sure that any proposed changes to the game receive proper review before going live.

http://www.starsonata.com/features


Tue Mar 26, 2013 8:38 am
Profile
User avatar
Team: Terran Empire
Rank: Officer
Main: Maxathron
Level: 2512

Joined: Sat Jan 21, 2006 11:16 am
Posts: 5781
Post Re: Converting XML mods value
What was 15 supposed to be? :o


Tue Mar 26, 2013 8:50 am
Profile
Member
User avatar
Team: Resident Evil
Rank:
Main: topbuzzz
Level: 4589

Joined: Sun Dec 21, 2008 12:31 pm
Posts: 4341
Post Re: Converting XML mods value
not sure, a sekret mod thats only on admin ships :lol: if you know what it is tell meh!

_________________
Image


Tue Mar 26, 2013 8:55 am
Profile WWW
User avatar
Main: None
Level: 0

Joined: Wed May 02, 2012 10:21 am
Posts: 992
Post Re: Converting XML mods value
15 is Workhorse


Tue Mar 26, 2013 8:59 am
Profile
Member
User avatar
Team: Resident Evil
Rank:
Main: topbuzzz
Level: 4589

Joined: Sun Dec 21, 2008 12:31 pm
Posts: 4341
Post Re: Converting XML mods value
thanks and added

_________________
Image


Tue Mar 26, 2013 9:31 am
Profile WWW
Content Dev
User avatar
Team: JMC
Rank: Director
Main: Blue Dwarf
Level: 2061

Joined: Fri Apr 29, 2011 5:39 pm
Posts: 3336
Post Re: Converting XML mods value
These are correct.

PS: Gunna add a command to BobboBot for this. Could be useful.

_________________
"What you mean you killed him cha cha cha?!"

Support


Tue Mar 26, 2013 8:41 pm
Profile
Content Dev
User avatar
Team: JMC
Rank: Director
Main: Blue Dwarf
Level: 2061

Joined: Fri Apr 29, 2011 5:39 pm
Posts: 3336
Post Re: Converting XML mods value
Done:

!mod (bitflag) - Calculates the mods on an item from the bitflags saved in the inventory XML under the 'm' attribute.

_________________
"What you mean you killed him cha cha cha?!"

Support


Tue Mar 26, 2013 10:23 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © phpBB Group.