The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: Quinarbre on September 23, 2010, 04:06:09 pm



Title: Size limit to uqm.rmp ?
Post by: Quinarbre on September 23, 2010, 04:06:09 pm
Hi,

I stumbled across that strange bug, that we had added a lot of resources to the game, up to the point that it won't take more.
Precisely, when uqm.rmp crosses the 64 ko barrier, the game won't load any resource at startup, and soon crash. I'm sure it's not an issue with the resources I add, adding them and removing an equal number of any other solved the issue (temporarily).

I tried to find a more stable way of solving this, but I can't find where the limitation is. My guess was somewhere in libs/resource there's a limitation to how the rmp file is parsed, but for instance changing integers to long int in propfile.c did not solve my issue.


Title: Re: Size limit to uqm.rmp ?
Post by: Novus on September 24, 2010, 09:49:23 am
I stumbled across that strange bug, that we had added a lot of resources to the game, up to the point that it won't take more.
Precisely, when uqm.rmp crosses the 64 ko barrier, the game won't load any resource at startup, and soon crash. I'm sure it's not an issue with the resources I add, adding them and removing an equal number of any other solved the issue (temporarily).

I tried to find a more stable way of solving this, but I can't find where the limitation is. My guess was somewhere in libs/resource there's a limitation to how the rmp file is parsed, but for instance changing integers to long int in propfile.c did not solve my issue.
Are you using Windows? There was a bug 3 years ago related to Windows-style line endings in configuration files (#912 (http://bugs.uqm.stack.nl/show_bug.cgi?id=912)) and this may be a similar case. You may be able to work around it by using Unix-style line endings.

I suggest you make a proper bug report with test cases.


Title: Re: Size limit to uqm.rmp ?
Post by: Quinarbre on September 24, 2010, 04:24:17 pm
Yup but I use emacs, among other reasons to avoid line endings issues.

I'll post a bug report, but a test case could prove harder to build, since it requires resources files to match the resource map.


Title: Re: Size limit to uqm.rmp ?
Post by: Admiral Zeratul on September 24, 2010, 09:08:23 pm
...that we had added a lot of resources to the game...

Do you mean to say things like, say, ship and pilot graphics in the game can be manipulated? Is it as simple as swapping the files within the ".uqm" archives with replacements of my choice, or is the process more complicated? Either way, I surely must try it myself!  ;D


Title: Re: Size limit to uqm.rmp ?
Post by: Novus on September 24, 2010, 10:33:15 pm
...that we had added a lot of resources to the game...
Do you mean to say things like, say, ship and pilot graphics in the game can be manipulated?
You must be new here. The primary focus of development for the last years has been rewriting the resource system to make it easier to change this sort of thing.

Quote
Is it as simple as swapping the files within the ".uqm" archives with replacements of my choice, or is the process more complicated? Either way, I surely must try it myself!  ;D
If you only want a simple one-to-one swap (for example, you want to replace one song with another), you can simply replace the files (or produce a content package). If you want to do something tricky like add frames to an animation, things are more complicated.