Author Topic: Using a custom font in a defined path?  (Read 2577 times)

Yeah.

If you want it to all be done by an add-on you could probably download the font with a TCPObject and save it to the path, fileCopy doesn't work from zip files.

Thanks for the tip. Would it need to be on the internet to download the font? Or?

Nvm. So, whats an perfect example that is a newbie at coding with clients?

I got a good idea on what to do. Thanks!
« Last Edit: September 20, 2015, 09:24:49 PM by Quinn Mallory »

Before downloading a font to the folder, use isFile make sure the .gft file doesn't already exist (if it doesn't, just write the new file and you're good to go)

If it does exist, use getFileCRC to check whether it contains the correct font (don't replace) or is one of the auto generated arial ones (replace and call quit as changes won't be reloaded ingame)

I wouldn't call quit without the client's consent though.

I wouldn't call quit without the client's consent though.
Sometimes it's better to do things without asking the client because they won't understand it. You could have a message box "Blockland must be restarted once. - OK" but asking whether an action that is required should be done is a bad idea.

I personally wouldn't approve of my client being reset without me knowing why.

I personally wouldn't approve of my client being reset without me knowing why.

Its how TGE works. It won't see the font without a restart.

Before downloading a font to the folder, use isFile make sure the .gft file doesn't already exist (if it doesn't, just write the new file and you're good to go)

If it does exist, use getFileCRC to check whether it contains the correct font (don't replace) or is one of the auto generated arial ones (replace and call quit as changes won't be reloaded ingame)

How would I write the file? I'm not really xp in that area.

Its how TGE works. It won't see the font without a restart.
that doesn't mean to quit out of blockland

what he means is a prompt to either quit or keep playing, or just a message box saying that it needs to be booted again and that it's quitting

that doesn't mean to quit out of blockland

what he means is a prompt to either quit or keep playing, or just a message box saying that it needs to be booted again and that it's quitting


Oh well, I don't really have a clue. Next thing you know, it become plague inc. :P