Hi,
This is hard to describe but I'm not crazy bear with me
For some reason the majority of my text outputs using the following code
I'm working on a map with minigames everything was fine and dandy. Recently I tried showing someone and noticed some of the text wasent displaying anymore, specifically the minigame name and wind up text there are others as well but this is one I managed to isolate the code for
I've been working on the code to narrow the issue down but its just been getting more perplexing the further I've dug. As far as I can tell the code is executing correctly all the way through but when the text is meant to output to the player instead of normal text a blank line is output instead for seemingly no reason
I can tell its outputting a blank line because I started using a library from here that outputs a large amount of debug text and occasionally i now see blank rows being inserted in between the debug calls, I have tried disabling the new library and disabling and enabling debug mode and it did not change any of these issues
This is my trigger to start a minigame it runs every 300 seconds at the moment when the increment hits 300 or higher it sets a value to disable the trigger till the minigame is ended, it turns on a trigger that executes every second which spams some more text each second and plays some sounds then at the 5 second mark starts the minigame
All this stuff works as far as I can tell at the 300 second mark the sounds start playing according to the other trigger and 5 seconds later a random minigame starts
I haven't posted that code because its identical in most ways and all the actions in both triggers are happening just the text output is always blank
I had these outputs working briefly without changing much last night and then this morning with no change not working again but the trigger is definitely running because the minigame starts and there is no other code to start them on the map except from this trigger
I have checked the war3map.wts file by extracting it with a MPQ editor and I'm at around 5723 strings so not reached the end? if it does end at 8192 or whatever it is. The string Minigame Time! is in the file too so its not become corrupt somehow as far as i can tell though i don't have much experience manually editing these files
Does anyone have any ideas why I'm getting these texts being displayed as blank lines or had a similar issue and an approach to fixing it please?
I've tested at 15 seconds after map init outputting text using the same command and it worked with no problems as well
This is hard to describe but I'm not crazy bear with me
For some reason the majority of my text outputs using the following code
- Game - Display to (All players) the text: Minigame Time!
I'm working on a map with minigames everything was fine and dandy. Recently I tried showing someone and noticed some of the text wasent displaying anymore, specifically the minigame name and wind up text there are others as well but this is one I managed to isolate the code for
I've been working on the code to narrow the issue down but its just been getting more perplexing the further I've dug. As far as I can tell the code is executing correctly all the way through but when the text is meant to output to the player instead of normal text a blank line is output instead for seemingly no reason
I can tell its outputting a blank line because I started using a library from here that outputs a large amount of debug text and occasionally i now see blank rows being inserted in between the debug calls, I have tried disabling the new library and disabling and enabling debug mode and it did not change any of these issues
-
Minigame Timer
-
Events
- Time - Every 2.00 seconds of game time
-
Conditions
- miniGamesOn Equal to (==) True
-
Actions
-
Set miniGameTimer = (miniGameTimer + 2)
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- miniGameTimer Greater than or equal to (>=) MinigameFrequencySecs
-
Then - Actions
- Set miniGameIsCurrentlyRunning = True
- Set minGameType = minigameOrderOfPlay[minigameNext]
- Game - Display to (All players) the text: Minigame Time!
- Game - Display to (All players) the text: ___________________...
- Set miniGamesOn = False
- Trigger - Turn on Intro Minigame <gen>
- Else - Actions
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Set miniGameTimer = (miniGameTimer + 2)
-
Events
All this stuff works as far as I can tell at the 300 second mark the sounds start playing according to the other trigger and 5 seconds later a random minigame starts
I haven't posted that code because its identical in most ways and all the actions in both triggers are happening just the text output is always blank
I had these outputs working briefly without changing much last night and then this morning with no change not working again but the trigger is definitely running because the minigame starts and there is no other code to start them on the map except from this trigger
I have checked the war3map.wts file by extracting it with a MPQ editor and I'm at around 5723 strings so not reached the end? if it does end at 8192 or whatever it is. The string Minigame Time! is in the file too so its not become corrupt somehow as far as i can tell though i don't have much experience manually editing these files
Does anyone have any ideas why I'm getting these texts being displayed as blank lines or had a similar issue and an approach to fixing it please?
I've tested at 15 seconds after map init outputting text using the same command and it worked with no problems as well
Last edited: