Author Topic: National Flags in Chat  (Read 7900 times)


(Purple admin shield is not included)
As seen in my National Flags server.

This server mod will look up the country for each client's IP address, and assign a flag to go next to their name. The tiny version of this mod only uses flags that I've identified as generally occurring the most in the Blockland community. If you want, you can download the full version and then simply delete files from the /flags/ folder to select which flags you want loaded. It is safe to delete images or add different flag images in the /flags/ folder. Any image file that matches a country's two-digit code will be used when a client connects from that country.

Download full version (248 datablocks) 166kb
https://pecon.us/projects/storage/nationalFlagsFull/Server_NationalFlags.zip

Download tiny version (17 datablocks) 14.8kb Recommended!
https://pecon.us/projects/storage/nationalFlagsTiny/Server_NationalFlags.zip


Flags included in tiny version:
- Australia
- Brazil
- Canada
- Chile
- Denmark
- Estonia
- England
- Finland
- France
- Great Britain (England Alias)
- South Korea
- Malta
- Mexico
- Netherlands
- Poland
- Russia
- United States

The full version has just about every country in the world, but uses an excessive amount of datablocks.
« Last Edit: November 20, 2016, 08:11:22 PM by Pecon »

Cool mod.
So the full version just has lot more flags?
Do you need to download textures to see the flags, if you don't have the mod?

Cool mod.
So the full version just has lot more flags?
Do you need to download textures to see the flags, if you don't have the mod?
Yes, they are all considered textures.

Could you add a feature in which it lets a player change their flag if they wish. Some people may have a flag which does not match their nationality.


Could you add a feature in which it lets a player change their flag if they wish. Some people may have a flag which does not match their nationality.
That's just asking for trouble in my opinion. It would turn out like that setlight mod where someone always comes in with a script that changes it every second. Someone will come in with a script that just gives them a random flag every time they chat. It would be annoying.

Add an RTB pref or something to toggle it then or restrict the amount of times it can be changed.

Maybe even admin only and a player has to request the change.
« Last Edit: November 04, 2013, 11:27:05 AM by Danny Boy »

I like this, reminds me of track mania chat


That's just asking for trouble in my opinion. It would turn out like that setlight mod where someone always comes in with a script that changes it every second. Someone will come in with a script that just gives them a random flag every time they chat. It would be annoying.

how would that be annoying

datablock whoring ;-;

also, message zapk, he was wanting this

Haha, this is really cool! Thanks for making it.

Holy stuff is demian finnish?

* MARBLE MAN gets home and checks code

1. Used ip tracer mod as reference (as predicted)
2. Used particles (as predicted)
3. Uses excessive amounts of datablocks (as predicted)

Either I'm god, or I code too much



Edit:

you better change TraceIPClass to something else, otherwise it will conflict with my IP Trace mod
« Last Edit: November 04, 2013, 04:40:59 PM by MARBLE MAN »

3. Uses excessive amounts of datablocks (as predicted)
(248 datablocks)
no way

I'll change the class name.