Increasing Font Limit with Script

maxman

Well-known member
I'm wondering about increasing font limit. So far we have like 8 or 11 or 12. I can't remember how many. How to increase like up to 15 and on with script? I hear that increasing weapon limit is very unlimited when using script.
 
Script doesn't let you truly break quantifiable limits. It just gives you total control and more access to the engine's full capacity compared to text commands. Whatever the font limit is, that's what it is. The engine simply won't load more and there's nothing for script to access.

That said, I don't recall what font limit is, or if there is a font limit at all. I'm traveling, but please remind me and I'll check for you. If there is a hard limit it shouldn't be a problem to increase.

DC
 
Using two variables var incr = 0; var decr = 0; then when you need to restrict the font size to three clicks, you need to decrease the weight of other fonts if you click on the button to still provide three clics to raise then decrease the font size.
 
At first, I thought of increasing font limit for different font colors because of kimono's Way of the Martial Arts mod. What I mean with font limit is that it's current limit is 10: Font, font2, font3, up to font9 (IIRC). It's like a weapon increase (like 31 and so on; according to DC, it's unlimited) in script, but this is for font. If I can't increase the limit, I would like to have a custom font sprite like you see in sprites folder. A custom drawstring would be great to use if you cannot increase the limit for font. Maybe like an entityvar if a font is an entity or something different? We need an alternate/customizable drawstring for custom fonts to play a role. A drawstring-like function, that is. (It doesn't have to be too exact, but I need it to be customizable if cannot make font increment.)
 
maxman

Yeah, since build 4287+ you can use 10 fonts. But are you using 10 fonts already?

It's like a weapon increase (like 31 and so on; according to DC, it's unlimited)
~Weapons: NA** (31)- The actual number of weapon models is NA**, but the weapon list in a single model text is limited to 31 items. Switching models directly via script can bypass this limitation for an infinite number of alternates.
I took a quick look at the source but If I am not mistake, it's not quite that.

I haven't found any hard limit for the number of weapons per se (IOW, they are "unlimited" - 2,147,483,647 to be precise). BUT what gets into the count its the maximum character length - 512 if I am not wrong. Damon Caskey can give us more info about that.

many of the limits on the manual need to be udapted. For example, "Remaps: 30 - Total number of color maps (including the default) available for each model." it's not true - remaps (better saying, palettes) are "unlimited" as far as I remember DC explaining to me. I have an entity with 19 palettes and I have no issue until now.


 
O Ilusionista said:

There's no trick that will make the weapon list accommodate more than the string limit. The reason script can add more is because with script you can just switch models directly, bypassing the weapon system entirely.

DC
 
I forgot to mention about string. String is what I'm trying to go with. My point is not about weapons. It's all about custom string since we have 10 fonts.
 
maxman

The way each mod can customise maxglobalvars and various others we should be able to break the font limit with a command like that.  For now this could be a work around for you.  If there are any fonts that you only use 1 case for then you can use the opposite case for the another font potentially doubling the limit.

Test this build to confirm you can use more then 11 fonts without breaking anything.

https://www.mediafire.com/file/dnzk0nig0ny4a5p/OpenBOR_6391_font_limitbreak.zip/file
 
I just tested it with more than 11 fonts. This is wonderful! It works perfectly! I originally wanted to create a customizable font but it's beyond my knowledge on how to do it.

Thank you so much, msmalik681! Now I'm not sure if we would have this kind of limit allowable or not.
 
maxman said:
I just tested it with more than 11 fonts. This is wonderful! It works perfectly! I originally wanted to create a customizable font but it's beyond my knowledge on how to do it.
To create custom fonts its pretty easy. There are some info in the manual about it. You just need to respect the right size and its done.

msmalik681 Nice :)
 
Back
Top Bottom