Click to visit: JoinUO free shard list
Direct Editing of Dynamic0.mul.q
5 posts
• Page 1 of 1
<Derrick> RunUO AI is kind of a functional prototype, which i have hacked into something resembling OSI behavior, but only by complitcating everything
|
|
Because this patch is one of the most complex ones applied to the original demo I've decided to post some screenshots of the assembler code I changed/added.
Because the original dynamic0.mul.q file is read per block (each dynidx0.mul.q entry being one block) I added a small cache engine to help speed up the modified reading process. To be honest, to make the loading process faster the complete dynamic0 loading code needs to be rewritten from scratch.
Another change I had to make was adding code that checks the environment strings for IGNOREDYNIDX0 and that it is set to YES. This function was already patched into the UoDemo+ (used by SAVEDYNAMIC0), but I had to rewrite it a bit to gain extra bytes. On the screenshot: FUNC_GetDataOfMULusingIDX is the original function found in the demo, FUNC_GetDataOfDynamic0__PATCH is a function I created.
The full FUNC_GetDataOfDynamic0__PATCH:
These are screenshosts of the cache functions I added:
To make this patch possible, a few regular demo functions had to be moved to other locations in memory. This is clearly seen should you do a bindiff between Publish 12 and Publish 13. <Derrick> RunUO AI is kind of a functional prototype, which i have hacked into something resembling OSI behavior, but only by complitcating everything
|
|
With new UODEMO+, i can still use old storage option with idx file?
|
|
<Derrick> RunUO AI is kind of a functional prototype, which i have hacked into something resembling OSI behavior, but only by complitcating everything
|
|
If anyone's interested, here's a node script to quickly swap back and forth between newlines and nuls:
https://gist.github.com/1052312 Usage: $ ./dynamic dynamic0.mul.q It sniffs for newlines and nul bytes so theres no need to specify. |
|
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests