Page 1 of 1

Mount Command

Posted: Sat Sep 09, 2017 4:17 pm
by Tiger
Any chance of adding a /mount slash command to the server pack. I know the command is in LUA but want one you can just type in the chat console. And make "/mount 0" a dismount command.

Re: Mount Command

Posted: Wed Oct 04, 2017 12:35 pm
by Scribble
Any status on this yet? Working / not working?

Re: Mount Command

Posted: Wed Oct 04, 2017 3:34 pm
by Cynnar
Never looked at the /mount command, so don't know what all it has.

If there is already a command to dismount it could be added to a hotkey for ease of use.

Like I said I've never looked at them, so I don't know if it even exist.

Re: Mount Command

Posted: Wed Oct 04, 2017 4:44 pm
by Ememjr
it should not be to difficult to add a mount command, there is alreadt a mount command in lua
SetMount()

i am actually working on mounts but with 569 mounts in the game its tough finding all the model types for them

Re: Mount Command

Posted: Sat Dec 23, 2017 7:55 pm
by Tiger
Ememjr wrote: Wed Oct 04, 2017 4:44 pm it should not be to difficult to add a mount command, there is alreadt a mount command in lua
SetMount()

i am actually working on mounts but with 569 mounts in the game its tough finding all the model types for them
Want me to make a script to dump which appearances are mounts?

Re: Mount Command

Posted: Sun Dec 24, 2017 1:31 am
by tyrbo
You're alive!

Re: Mount Command

Posted: Sun Dec 24, 2017 3:03 am
by tyrbo
Also, there's a Lua function for setting mounts.

You can use the code from that function for reference when creating a command.

I had my /test command wired up to mounts a couple of days ago but it's swapped to something else since then.

Re: Mount Command

Posted: Sun Dec 24, 2017 9:00 am
by Ememjr
Tiger wrote: Sat Dec 23, 2017 7:55 pm
Ememjr wrote: Wed Oct 04, 2017 4:44 pm it should not be to difficult to add a mount command, there is alreadt a mount command in lua
SetMount()

i am actually working on mounts but with 569 mounts in the game its tough finding all the model types for them
Want me to make a script to dump which appearances are mounts?
that would be awesome

Re: Mount Command

Posted: Sun Dec 24, 2017 10:02 am
by Tiger
Ememjr wrote: Sun Dec 24, 2017 9:00 am
Tiger wrote: Sat Dec 23, 2017 7:55 pm
Ememjr wrote: Wed Oct 04, 2017 4:44 pm it should not be to difficult to add a mount command, there is alreadt a mount command in lua
SetMount()

i am actually working on mounts but with 569 mounts in the game its tough finding all the model types for them
Want me to make a script to dump which appearances are mounts?
that would be awesome
The info is in app_cache.dat (zlib compressed). It is around 271MB uncompressed. I'll see what I can do.

Re: Mount Command

Posted: Sun Dec 24, 2017 12:33 pm
by Tiger
I'm using the QuickBms scripting language.
Get QuickBms here:
aluigi.altervista.org/quickbms.htm
Here is a quickbms script that can be used to decompress app_cache.dat:
https://ps23dformat.wikispaces.com/file ... mpress.bms

Code: Select all

ComType zlib_noerror ;
GoTo 0x1 0 ;
Get decompressedsize Long 0 ;
Get compressedsize Long 0 ;
CLog AppDataDecompressed 0x9 compressedsize decompressedsize 0 ;
Here is a script that dumps strings and .voc from the decompressed file:

Code: Select all

log MEMORY_FILE1 0 0 ;
log MEMORY_FILE2 0 0 ;
GoTo 0 0 ;
Get appearancenumber Long 0 ;
SavePos base 0 ;
Math writetobase1 = 0 ;
For A = 1 To appearancenumber ;
GoTo base 0 ;
Get idnumber Long 0 ;
Get textlength Short 0 ;
GetDString name textlength 0 ;
SavePos base 0 ;
GoTo writetobase1  MEMORY_FILE1 ;
Put idnumber String MEMORY_FILE1 ;
SavePos writetobase1 MEMORY_FILE1 ;
Math writetobase1 -= 1 ;
GoTo writetobase1  MEMORY_FILE1 ;
Put 0x20 Byte MEMORY_FILE1 ;
Put name String MEMORY_FILE1 ;
SavePos writetobase1 MEMORY_FILE1 ;
Math writetobase1 -= 1 ;
GoTo writetobase1  MEMORY_FILE1 ;
Put 0x0D Byte MEMORY_FILE1 ;
Put 0x0A Byte MEMORY_FILE1 ;
SavePos writetobase1 MEMORY_FILE1 ;
Next A ;
Get filesize ASIZE MEMORY_FILE1 ;
Log strings.txt 0 filesize MEMORY_FILE1 ;
GoTo base 0 ;
Get vocnumber Long 0 ;
SavePos base 0 ;
Math writetobase2 = 0 ;
For B = 1 To vocnumber ;
GoTo base 0 ;
Get idnumber1 Long 0 ;
Get idnumber2 Long 0 ;
Get textlength Short 0 ;
GetDString name textlength 0 ;
SavePos base 0 ;


GoTo writetobase2  MEMORY_FILE2 ;
Put idnumber1 String MEMORY_FILE2 ;
SavePos writetobase2 MEMORY_FILE2 ;
Math writetobase2 -= 1 ;
GoTo writetobase2  MEMORY_FILE2 ;
Put 0x20 Byte MEMORY_FILE2 ;
SavePos writetobase2 MEMORY_FILE2 ;
GoTo writetobase2  MEMORY_FILE2 ;
Put idnumber2 String MEMORY_FILE2 ;
SavePos writetobase2 MEMORY_FILE2 ;
Math writetobase2 -= 1 ;
GoTo writetobase2  MEMORY_FILE2 ;
Put 0x20 Byte MEMORY_FILE2 ;
Put name String MEMORY_FILE2 ;
SavePos writetobase2 MEMORY_FILE2 ;
Math writetobase2 -= 1 ;
GoTo writetobase2  MEMORY_FILE2 ;
Put 0x0D Byte MEMORY_FILE2 ;
Put 0x0A Byte MEMORY_FILE2 ;
SavePos writetobase2 MEMORY_FILE2 ;
Next B ;

Get filesize ASIZE MEMORY_FILE2 ;
Log voc.txt 0 filesize MEMORY_FILE2 ;

Re: Mount Command

Posted: Thu Dec 28, 2017 1:44 pm
by John Adams
Tiger wrote: Sun Dec 24, 2017 12:33 pm I'm using the QuickBms scripting language.
Man, I've missed this guy.