filenames for bosses and npc's with exotic letters?

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
daftigod
Archmage
Posts: 300
Joined: Fri Feb 18, 2011 6:15 am

filenames for bosses and npc's with exotic letters?

#1 Post by daftigod »

hi! Im wondering how to go about naming the more obscure tiles in ToME. Specifically, boss npc's that have commas in their names.

Example: Animal / Bear / Boss / Norgos, The Guardian

Normally, I could name a file animal_bear_norgos.png and drop it into the gfx\npc\ dir and it would show up in tome. But because of the ", The Guardian" descriptor something gets messed up.

I've tried all of the following file name variations and nothing works:

animal_bear_norgos_the_guardian.png
animal_bear_norgos,_the_guardian.png
animal_bear_norgos_,_the_guardian.png
norgos_the_guardian.png
norgos,_the_guardian.png
norgos_,_the_guardian.png
bear_norgos.png
boss_norgos.png
etc. etc.

I've tried looking in the .lua's for help but I'm not sure I'm looking in the right places. There are many tiles that I would like to add, but I just can't figure out this naming convention!

some other npcs that are effected:

elemental_xorn_Harkor'Zun (the ' messes up the filename)
demon_major_dúathedlen (the alternate u messes up the filename)
any boss with a descriptor (", The Destroyer" , ", The Mummifier" etc.)

Thanks!

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: filenames for bosses and npc's with exotic letters?

#2 Post by darkgod »

Any characters that is not a number or a letter is converted to _
So it should be: animal_bear_norgos__the_guardian.png (untested but no reason it wont work :) )
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

daftigod
Archmage
Posts: 300
Joined: Fri Feb 18, 2011 6:15 am

Re: filenames for bosses and npc's with exotic letters?

#3 Post by daftigod »

AAAAAAAAAHHHHHH!!! I spent hours trying to figure that out. Figures you'd show up in 20 minutes with the answer. Thanks DG!

Post Reply