- Posts: 6579
- Joined: Thu Jun 30, 2011 8:12 pm
- Personal rank: God of Fudge
- Location: Palo Alto, CA
I edit all my .ini files with Windows' Notepad. You could stuff a short novel into there with room to spare.
medor wrote:Replace Skaarj with EvilGrins
Huh ? It's about a class or many classes involved ? I'm, asking because right now I'm looking at a file named "MapListTemp.ini" which is 56820 bytes length which means 55,4 kilobytes and space on disk is 64 kilobytes according to disk's cluster rules.sn260591 wrote:1023 characters is max
Then dynamicload MHActors.string(etc..Level...)
spawn it - check if exist if not = Level badly screwed, log issue.
Then actors operates an entire internal list with fixes... and then getting vanished...
I don't see why I need 5000 bytes from an ini if I know exactly what I need to change in Level.
Hint: at a moment when some Level mutator intend to screw BaseMutator with regen timers you can ruin it correctly by moving all regen in outside... into an actor spawned (or two actors) spawning based on day from week or month, server-side so less "mappers" will be able to get over rules by adding trash in maps ruining server stuff and rules.
Code: Select all
Not really true for bulk concatenating... see thread Maximum String length.sn260591 wrote:However, string in a code have no such restriction. It is possible to take several variables from ini and to combine them by means of the operator "$".
<EDIT>Joined double post </EDIT>
<EDIT2>I've just written a small mutator to answer this and got the result that an INI ASCII value string is truncated to 1023 chars. What bad - I feel limited at every corner with UScript... </EDIT2>
Happens because as I could figure so far, you are using to follow almost always the hard way. UScript is not extremely limited as much as it is SIMPLE and even Non-Coders are able to write a small mutator in UScript.Barbie wrote: <EDIT2>I've just written a small mutator to answer this and got the result that an INI ASCII value string is truncated to 1023 chars. What bad - I feel limited at every corner with UScript... </EDIT2>
You can make a tool for tweaking Levels more simple without all sort of doggy SLOW string things using a Level check and spawn "fixer" doing job based on hard-coded "constants" (as you like and I don't understand well why that way). I think you don't even need an INI for this job. Take a look at BotzMutator, it is using some packages matching Level name and there are coded separate things loaded when they need to enter in action.
Aside, if still UScript is too... amoeba like, feel free to setup some natives in C++ bound by an actor from an U file - see TickFix example, and then you can toy in Level with actors as you like. If not, try to think simple.