Loathing map actions mesh limits

A forum for discussing map making ideas and problems for the Myth series.
Post Reply
Rama
Posts: 20
Joined: Thu Feb 08, 2007 4:34 am

Loathing map actions mesh limits

Post by Rama »

What is the actual limit for map actions in Loathing 1.7? I start running into problems right around 800 to 830 map actions. The actions start coming up as <unnamed action> with Type set to NONE.

If I quite and restart Loathing, I can get it to take a few more before I get these problems again.

It says in Mesh Limits for 1.7 that the max is 1024 map actions. So what is the actual limit?

Thanks
User avatar
haravikk
Site Admin
Posts: 987
Joined: Mon Mar 22, 2004 12:56 pm
Location: Scotland

Re: Loathing map actions mesh limits

Post by haravikk »

It probably should be 1024 then, this sounds like it may be an issue with Loathing not supporting the new limit fully, rather than the limit increase not being implemented.

You are using the 1.7 version of Loathing I expect? What platform, Mac or PC?
Being Haravikk gets you girls like these:
Image
Rama
Posts: 20
Joined: Thu Feb 08, 2007 4:34 am

Re: Loathing map actions mesh limits

Post by Rama »

I'm running Loathing 1.7 on Windows XP.
User avatar
Pyro
Bug Finder Extraordinaire
Posts: 4751
Joined: Sun Mar 21, 2004 2:14 pm
Location: Texas

Re: Loathing map actions mesh limits

Post by Pyro »

Open that mesh in Loathing and on the menu go to Mesh and click on Mesh Limits. A window should appear with the current values your map is on. The bottom one says MA params size. Are you close to that limit? Sometimes you can reach this limit before the 1024 map actions limit, and in other situations it is the other way around.
Graydon
Posts: 1605
Joined: Sun Mar 21, 2004 5:10 pm

Re: Loathing map actions mesh limits

Post by Graydon »

There are ways to get the maximum number of map actions, but you have to be extremely clever with keeping your MA Param Size value down.

I think the limit has always been 1024? Most people typically start running into problems around the 700-800 MA mark, depending how complex the actions are.

Every character typed into an action counts towards 1 byte incremements in your MA param sizes. So say your tally is at 35000, and you add "TUNI.Is Player Close To Thrall B?", even without putting ANY parameters into that Map Action, you've just added 32 bytes to your 35000. It's now 35032.

As an example of param saving, here's how you could re-work it: "TUNI.At TB?" thus using only 10 extra bytes. As long as you can keep track of your naming system, you may be able to squeeze more map actions out of your mesh simply by shortening names on actions.

Furthermore, any parameters you add to an action, and any indicators for those params... for example a Flag + a true or false indicator, would add param size values for every byte/character displayed in loathing. This is how a map with only 700 complicated map actions can be hitting the limit, where a different map with 950 simple map actions can be hitting the limit.

Gluck. :)
Image
Rama
Posts: 20
Joined: Thu Feb 08, 2007 4:34 am

Re: Loathing map actions mesh limits

Post by Rama »

Been wondering what those MA parameters were. Guess I have some renaming to do. Thanks for the help!

Please excuse any double post, don't know if the first one went through.
A-Red
Posts: 771
Joined: Fri Jul 23, 2004 8:36 pm

Re: Loathing map actions mesh limits

Post by A-Red »

Hey, did you have any luck getting the map to work?

If you have a strong grasp of scripting, you can usually find alternate ways to script things that use fewer lines. I don't know what your script looks like, so for the most part I can't tell you what those ways are. One really good way to conserve map actions is to use Mungers, which allow you to actually alter parameters of actions mid-level, so that you can re-use the same actions for different purposes. There are tricks to it, but I have a scripting tutorial on the Tain that goes into detail on the subject.
Rama
Posts: 20
Joined: Thu Feb 08, 2007 4:34 am

Re: Loathing map actions mesh limits

Post by Rama »

Hi A-Red,

Yeah, I got it working fine. There is plenty I can cut out to give me all the MA parameters I need. Just been busy with other things, so playing with Myth has been put on the sidelines.

And mungers are awesome! Make scripting so much easier in my opinion. Yeah, I figured out how to use them by looking at scripting on other maps. Most of my scripts are just modifications to other peoples' scripts. Makes debugging so much easier, considering my limited knowledge of scripting! And I'll have to check out your script guide, see what other cool stuff loathing can pull off.
Post Reply