Mount Command

Post any suggestions you feel will improve the site or any aspect outside emulator development. Post development suggestions/ideas to the development forum.

Moderator: Team Members

Post Reply
Tiger
Posts: 18
Joined: Thu Dec 25, 2008 1:20 pm
Location: New York

Mount Command

Post by Tiger » Sat Sep 09, 2017 4:17 pm

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.

User avatar
Scribble
Team Member
Posts: 157
Joined: Wed Jun 22, 2016 5:30 am
EQ2Emu Server: Norrath Reborn
Characters: Scribe
Location: East Coast , USA
Contact:

Re: Mount Command

Post by Scribble » Wed Oct 04, 2017 12:35 pm

Any status on this yet? Working / not working?
Follow me at https://twitter.com/EqIIEmulator
Like to keep up with news via Discordapp chat?

Join eq2emulator public discord at https://discord.gg/sCR4fPZ
Check me out on Twtich at https://www.twitch.tv/scribbleeq23

User avatar
Cynnar
Project Leader
Posts: 738
Joined: Sat Sep 27, 2014 1:22 am
EQ2Emu Server: Eq2emulator
Characters: Vlash
Veinlash
Taragak
Cynnar

Re: Mount Command

Post by Cynnar » Wed Oct 04, 2017 3:34 pm

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.
[ 01000011 01111001 01101110 01101110 01100001 01110010 ]

Follow on:
Twitter Facebook

Contact me:
PM Discord chat email

Hardware: the parts of a computer that can be kicked

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: Mount Command

Post by Ememjr » 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

Tiger
Posts: 18
Joined: Thu Dec 25, 2008 1:20 pm
Location: New York

Re: Mount Command

Post by Tiger » 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?

tyrbo
Team Member
Posts: 271
Joined: Thu Feb 18, 2016 12:33 pm

Re: Mount Command

Post by tyrbo » Sun Dec 24, 2017 1:31 am

You're alive!

tyrbo
Team Member
Posts: 271
Joined: Thu Feb 18, 2016 12:33 pm

Re: Mount Command

Post by tyrbo » Sun Dec 24, 2017 3:03 am

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.

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: Mount Command

Post by Ememjr » 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

Tiger
Posts: 18
Joined: Thu Dec 25, 2008 1:20 pm
Location: New York

Re: Mount Command

Post by Tiger » Sun Dec 24, 2017 10:02 am

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.

Tiger
Posts: 18
Joined: Thu Dec 25, 2008 1:20 pm
Location: New York

Re: Mount Command

Post by Tiger » Sun Dec 24, 2017 12:33 pm

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 ;

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Mount Command

Post by John Adams » Thu Dec 28, 2017 1:44 pm

Tiger wrote: Sun Dec 24, 2017 12:33 pm I'm using the QuickBms scripting language.
Man, I've missed this guy.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests