Star Sonata
http://forum.starsonata.com/

Converting XML mods value
http://forum.starsonata.com/viewtopic.php?f=17&t=55519
Page 1 of 1

Author:  sabre198 [ Tue Mar 26, 2013 7:06 am ]
Post subject:  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.

Author:  anilv [ Tue Mar 26, 2013 8:38 am ]
Post subject:  Re: Converting XML mods value

Nice!

Author:  Max235 [ Tue Mar 26, 2013 8:50 am ]
Post subject:  Re: Converting XML mods value

What was 15 supposed to be? :o

Author:  sabre198 [ Tue Mar 26, 2013 8:55 am ]
Post subject:  Re: Converting XML mods value

not sure, a sekret mod thats only on admin ships :lol: if you know what it is tell meh!

Author:  Dark Brotherhood [ Tue Mar 26, 2013 8:59 am ]
Post subject:  Re: Converting XML mods value

15 is Workhorse

Author:  sabre198 [ Tue Mar 26, 2013 9:31 am ]
Post subject:  Re: Converting XML mods value

thanks and added

Author:  Blue Dwarf [ Tue Mar 26, 2013 8:41 pm ]
Post subject:  Re: Converting XML mods value

These are correct.

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

Author:  Blue Dwarf [ Tue Mar 26, 2013 10:23 pm ]
Post subject:  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.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/