• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Custom Font Question

Status
Not open for further replies.
Hi I am using a custom font in my map and it's working fine, except for chat and floating text. To my understanding I need to edit the mpq if I want it to work for chat. Chat is unimportant and doesn't matter as the map is a single player map, but the floating text is more important.

When I first start the map the floating text has the normal Warcraft 3 font (everything else has the custom font), but if I restart the map without closing Warcraft 3 the font changes.

How can I get the font to apply to the floating text without having to restart the map?
 
It seems it can't be done or at least for multiplayer(?):
change name of multiple text tags?
[Import] - Change Floating text fonts
Custom text not showing on first load
TheWhiteWolf

Might as well request it in the WE feeback thread.

Reloading the map and saving to the game cache if the map has been restarted seems like a viable option if I had only known how to do it :p

As it is right now I have a notice in the beginning telling people to restart the map once before playing.
 

deepstrasz

Map Reviewer
Level 71
Joined
Jun 4, 2009
Messages
19,171
The game cache is as easy as storing one simple boolean and setting it as true when the map has been restarted but how can I actually make the map restart? :eek:
A trigger to restart the map once it loads the first time :D?
[Trigger] - Restart the Game

Something like
  • Game - Save game as TESTRESTART.w3z and load TESTRESTART.w3z (Skip scores)
?
 
A trigger to restart the map once it loads the first time :D?
[Trigger] - Restart the Game

Something like
  • Game - Save game as TESTRESTART.w3z and load TESTRESTART.w3z (Skip scores)
?

This is what I have so far:
  • Restart
    • Events
      • Map initialization
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • RestartGame Equal to True
        • Then - Actions
          • Game - Save game as restart.w3z and change level to Maps\Custom\Alignment712.w3x (Skip scores)
        • Else - Actions
          • Game Cache - Create a game cache from GameCache.w3v
          • Set GameCache = (Last created game cache)
          • Game Cache - Store RestartGame as False of Restart in GameCache
Didn't work :(


EDIT: Lol I see now what's wrong, give me a sec, will test something.
 
EDIT: Lol I see now what's wrong, give me a sec, will test something.
At all or? Try executing that after map initialization through a run trigger action.

This is what I changed it to;

  • Restart
    • Events
      • Map initialization
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • RestartGame Equal to False
        • Then - Actions
          • Game Cache - Create a game cache from GameCache.w3v
          • Set GameCache = (Last created game cache)
          • Game Cache - Store RestartGame as True of Restart in GameCache
          • Game - Save game as restart.w3z and change level to Maps\Custom\Alignment712.w3x (Skip scores)
        • Else - Actions
All it did was end the game on start, but didn't actually set/start the map again. I am 100% sure I have the map in that folder so that shouldn't be an issue.
 
Try setting the next level but first have your map in a campaign file.
Unfortunately still no luck :(

Here's the latest trigger:
  • Restart
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set RestartGame = (Load True of RestartGame from GameCache)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • RestartGame Equal to False
        • Then - Actions
          • Game Cache - Create a game cache from GameCache.w3v
          • Set GameCache = (Last created game cache)
          • Game Cache - Store RestartGame as True of Restart in GameCache
          • Game - Set the next level to Maps\Alignment714.w3x
          • Game - Victory Player 1 (Red) (Skip dialogs, Skip scores)
        • Else - Actions
I have tried a lot of different things, none of which works. All paths are correct etc...
 
Status
Not open for further replies.
Top