HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Maximum custom script?

11-29-2003, 02:52 AM#1
Norbo
Is there a maximum to the amount of custom script that can be put into a map?

Currently, I'm at 811 lines (30,002 characters) in the custom script code area.

For some reason, it appears that I can only type a few more characters before it stops allowing keyboard input.

I don't crash, and nothing freezes.. it just won't allow anymore characters to be typed. I can backspace and retype the same number of characters and then hit the 'limit' again.

Is this a bug, or is there an actual limit to the amount of characters allowed in the custom script window?

I don't think it could be a limit, though, because every so often it allows me to type more before halting my progress.
11-29-2003, 02:57 AM#2
weaaddar
I think Golden Urg said it was a thousand or two short of a signed integers length of characters.

Remove all comments you have.... I guess.
11-29-2003, 03:13 AM#3
Norbo
30,000 would certainly fit that description..

I just tried doing it with a faster computer running XP, I was able to successfully put in over 206 pages of comments.. consisting of 'HI' going across the screen. It saved just fine, as well.

Perhaps 98SE or the other computer's slow nature could be the culprit?
11-29-2003, 03:37 AM#4
weaaddar
Comments may not count towards it.

GU was pretty positive it was like 31,000 or 30,000 thousand something characters. I think WE completely ignores commented code.

Although perhaps its the stutter effect of a slow pc thats cuasing the problem.
I'll check later.
11-29-2003, 08:11 AM#5
KaTTaNa
What are we talking about here? The maximum script length for a trigger*, or the entire war3map.j?
*By trigger, I mean all the code entered in the trigger's code box - which isn't necessarily related to the trigger.
11-29-2003, 03:57 PM#6
Norbo
I'm talking about the Custom Script Code spot in the menu. It's right above all the other triggers, and can be found by clicking on the map's name in the triggers menu.

I've temporarily solved the problem by moving a large chunk of code into a related trigger, but it isn't the best of solutions.
11-29-2003, 08:56 PM#7
COOLer
Just add it to blizzard j at the end and import ito your map thats what
PitzerMike did for his edtor . Trust me some of the stuff he added was 10 pages long lol.
11-29-2003, 09:18 PM#8
Peppar
I would believe that you have met a limit in Windows. The area in which you type your custom code is nothing more than a simple "Edit", and whichever limit you may stumble across would then be related to which version of Windows you are running.
11-29-2003, 09:54 PM#9
35263526
Just out of interest, did they code WE in C++?
Because that would make it make sense.
11-29-2003, 11:01 PM#10
COOLer
Ya the whole game was written in C++ i ask that qestion to blizzard along time ago on what wc3 was written in.
11-30-2003, 05:37 PM#11
PitzerMike
I already used 9000 lines of code in the custom text section of the map successfully.