Page 1 of 1

/spawn details

Posted: Sun Apr 30, 2017 7:57 pm
by Jabantiz
After a couple of nights doing content dev the "/spawn details" command began to annoy me mainly because everything was dumped to chat and after using it a lot values became difficult to find. In my attempt to figure out a better way to present the info I decided to forget trying to format the text and instead went with a book and this is the result.
spawndetailstest.png
The text still dumps to the chat window and if people don't like the book I can add in a rule to disable it but for now both will show. This is up on the emu server now and code is on the dev svn. For CoE clients all you need to do is make sure you have the latest structs, for DoV you need the latest structs and modify the "OP_EqShowBookCmd" to an opcode of 614, I am not sure of the correct slide as most other stuff around that range seems to be correct, you can have dupe opcodes though and that is how it is currently set up until I figure out what is going on in that range.

Re: /spawn details

Posted: Mon May 01, 2017 6:44 am
by Ememjr
can i get access to dev svn? seems i only have access to the regular one or i am not looking in the correct place

Re: /spawn details

Posted: Mon May 01, 2017 3:08 pm
by Jabantiz
dev svn has already sync'd with public so all of this is now on the public svn

Re: /spawn details

Posted: Mon May 01, 2017 4:22 pm
by Zcoretri
That's very nice addition Jabantiz...readable :)

Re: /spawn details

Posted: Mon May 01, 2017 8:59 pm
by Cynnar
Yes thanks for this Jab! We needed something to make this easier to read.

Re: /spawn details

Posted: Tue May 02, 2017 9:19 pm
by Gangrenous
Oh hell yeah, thanks dude!

Re: /spawn details

Posted: Mon May 08, 2017 3:14 pm
by Jabantiz
So something else I have discovered that I thought was impossible, the text can be colored in books by inserting a \ followed by the hex code for the color into the string. For example if you were to put "\#0000FF" into the string every thing after in that string will be blue.

I was thinking of maybe using this to alternate colors to make it easier to line up, any opinions on this and if people want this what colors?

Re: /spawn details

Posted: Mon May 08, 2017 3:36 pm
by Cynnar
I think adding colors could be a nice touch. Well for me at least. It would allow to find something at a glance.

Re: /spawn details

Posted: Mon May 08, 2017 3:54 pm
by Ememjr
i added\changed the code you changed for this to work and something still wrong
hope this was the correct opcode to change
opcode.JPG
but here is what i get when typing /spawn details
book.JPG

Re: /spawn details

Posted: Mon May 08, 2017 4:10 pm
by Jabantiz
The opcode only needed to be changed for the 1096 verison range, for 1208 it was already correct and should be 660

Re: /spawn details

Posted: Mon May 08, 2017 4:34 pm
by Ememjr
ok i made a mistake i am on 1096 for dov

i changed the opcode as follows
opcode.JPG
but now i get no popup on the screen

Re: /spawn details

Posted: Mon May 08, 2017 4:43 pm
by Jabantiz
did you move the new WorldStructs.xml from trunk/structs to your server folder?

Edit: Just did a local test on DoV again and it works for me
spawndetailsDoV.png

Re: /spawn details

Posted: Mon May 08, 2017 5:04 pm
by Ememjr
i thought i did but apparently i had forgotten, its working now