[phpBB Debug] PHP Warning: in file [ROOT]/includes/prime_links.php on line 121: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/prime_links.php on line 122: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/prime_links.php on line 121: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/prime_links.php on line 122: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/prime_links.php on line 121: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/prime_links.php on line 122: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4712: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3842)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4714: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3842)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4715: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3842)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4716: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3842)
Demo scripts | JoinUO Forums

Demo scripts

The UO "Demo" is a slightly modified OSI UO Server and Client which was bundled on the Ultima Online Second Age retail CD. This forum seeks to reveal it's mysteries.

Posts: 13
Joined: Tue Mar 29, 2011 7:25 pm
PostPosted: Sun Aug 04, 2013 4:38 pm
Hi,

I need help reading uo demo scripts to see how exactly things worked back then. I ran UO Demo archiver which showed me quite a bit of stuff in uodemo.dat. Is it the right place for that? Can't 'read' the files in there though as it seems to be encrypted or something.

Thanks

Site Admin
Posts: 65
Joined: Thu Sep 24, 2009 1:43 pm
Location: Was Russia,Moscow; Currently Germany,Berlin
PostPosted: Sun Aug 04, 2013 5:22 pm
UODemo scripts are compiled.
You can decompile them using existing software or yourself:
http://uodemo.joinuo.com/index.php?titl ... Decompiler
http://uodemo.joinuo.com/index.php?title=Scripts

Posts: 13
Joined: Tue Mar 29, 2011 7:25 pm
PostPosted: Sun Aug 04, 2013 5:34 pm
Thanks Garret, but how do I use it? Nothing happens when I click Mass Decompile button (in scripts directory)

Site Admin
Posts: 65
Joined: Thu Sep 24, 2009 1:43 pm
Location: Was Russia,Moscow; Currently Germany,Berlin
PostPosted: Sun Aug 04, 2013 5:51 pm
Hm, well,
the program is looking for files with *.q extension (default extension for extracted files).

When you press "Mass Decompile", it will read all script files and decompile them (so you can browse them on the right side),
"Dump All" will save decompiled scripts into "scripts.c" folder in parent directory of scripts.

Posts: 13
Joined: Tue Mar 29, 2011 7:25 pm
PostPosted: Sun Aug 04, 2013 6:52 pm
It asks me for directory with sdb.txt which is in C:\Users\BK\Desktop\UO98\rundir\scripts but there are no files there with m.q. extensions, just .txt only .uosl and .txt

the only .q.m. files I found were in uodemo.dat

Site Admin
Posts: 65
Joined: Thu Sep 24, 2009 1:43 pm
Location: Was Russia,Moscow; Currently Germany,Berlin
PostPosted: Sun Aug 04, 2013 8:39 pm
Mass Decompiler works only with .m/.m.q files, as i rememebr .uosl is an already decompiled script files.
.m/.m.q are uo demo script files.

Posts: 13
Joined: Tue Mar 29, 2011 7:25 pm
PostPosted: Sun Aug 04, 2013 8:43 pm
Ok but how do I decompile them if it only asks for another directory without m.q. files in there? My Mass Compiler windows are empty whether I load scripts directory and press Mass Compile, and it does not allow me to open uodemo.dat with it

Site Admin
Posts: 65
Joined: Thu Sep 24, 2009 1:43 pm
Location: Was Russia,Moscow; Currently Germany,Berlin
PostPosted: Sun Aug 04, 2013 9:45 pm
Oh, sorry, for extraction from uodemo.dat there's another tool: http://uodemo.joinuo.com/index.php?title=Uodemo.dat

Posts: 13
Joined: Tue Mar 29, 2011 7:25 pm
PostPosted: Sun Aug 04, 2013 9:59 pm
Thanks but the demodat files were already extracted. Here's what I get from my attempt to decompile scripts:


Image


Nothing happens when I click Mass Decompile and if I choose another directory it keeps asking me for sdb.txt

Site Admin
Posts: 65
Joined: Thu Sep 24, 2009 1:43 pm
Location: Was Russia,Moscow; Currently Germany,Berlin
PostPosted: Sun Aug 04, 2013 10:09 pm
Well, that's weird, all I can tell that it will decompile .m/.m.q files after "Mass Decompile" button is clocked as long as there's sdb.txt file in folder, it will fill the list on the left side with scripts.

Are you sure you are pointing it to the folder to where you have extracted content of original uodemo.dat?
Because as I see you point it at "UO98/rundir/scripts", which does not have any scripts that require decompilation, it contain .uosl scripts that are already decompiled.
You can browse them with any text editor. "UO98/rundir/scripts.uosl" dir contains decompiled original demo scripts.

p.s. It's also weird that my version looks different, it does not have that dropdown list with "UOSL".
Next

Return to UO Demo

Who is online

Users browsing this forum: No registered users and 12 guests