Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: 'Phantom' animal effect  (Read 1781 times)

'Phantom' animal effect
« on: May 22, 2008, 07:12:00 pm »

While personally modding my game to replace
normal animals with unique monstrosities
(like size 17 bears) to boost difficulty
I found that after removing the vanilla animals
from the raws and replacing them with my
'fun' versions that no matter haw many new worlds
were generated the vanilla animals remained, with
the new animals completely missing.
Mark that there is no trace of the regular animals
left in the raws and that the new animals are
(to my knowledge) perfectly functional.
Is there any reason for this effect
(like backups in the hard code) or is it
impossible to replace a vanilla with a completely
new creature. I haven't seen this problem mentioned before.
Help?
Logged
A HREF="http://dffd.wimbli.com/file.php?id=112">Food mod
Instrument mod

The Internet: Where even hundred legged treasure chests can be programmers.

Dasleah

  • Bay Watcher
    • View Profile
Re: 'Phantom' animal effect
« Reply #1 on: May 22, 2008, 08:51:00 pm »

That's weird, I'll give you that. I'm pretty sure that DF populates the world only from the raws... perhaps you have gaps in your ecosystem that needs to be filled and DF has a set of creatures built-in?

Exactly what creatures remain and what new ones do you see? Do you see any of your modded creatures? Have you double-checked everything (as in, it's 100% guaranteed that you are generating a new world, and the creatures you see aren't yours, and there's nothing in the error logs)

Also: your username. Too long, and it ruins the formatting of the forum.

Logged
Pokethulhu Orange: UPDATE 25
The Roguelike Development Megathread.

As well, all the posts i've seen you make are flame posts, barely if at all constructive.

Surma

  • Bay Watcher
    • View Profile
Re: 'Phantom' animal effect
« Reply #2 on: May 22, 2008, 09:08:00 pm »

Have you deleted the contents of the data\objects folder yet? If not, then it won't populate your from your stuff.

>.>

I think.

Logged

Kagus

  • Bay Watcher
  • Olive oil. Don't you?
    • View Profile
Re: 'Phantom' animal effect
« Reply #3 on: May 22, 2008, 09:59:00 pm »

Hooo....   Too much lack-of-knowledge floating around in here...  


First question:
Have you given your "fun" creatures any special names or easy-to-see abilities?  It is impossible to tell the size of a creature just by looking at it.

Second question:
Are you editing files in data/objects or raw/objects?   It sounds like you're editing the stuff in raw/objects, but I can't figure out why that wouldn't be working.

Third question:
Would you mind posting the code for one of your custom critters?  This problem doesn't seem related to anything inside the creature code itself, but I's nice to cover all the bases.


It is perfectly possible to overwrite any and all vanilla animals.  There is absolutely nothing hardcoded that creates creatures that fill "gaps".  If there is a missing creature where there should be one (the only place where this would come up would be with the various entities), the game will simply enter into an infinite map-rejection loop.  You do not need to delete the contents of data/objects unless you've made new text files that have different names from the originals.


Actually, I think I may have hit on the problem.  Did you create new .txt files to hold your custom creatures?  If so, are they named something different from the vanilla files?  

If you created new files and deleted the old ones, the old ones would remain in data/objects since they wouldn't be overwritten next time the game loads from raw/objects.  And if you forgot to put in the proper file headers in your new creature files, the game wouldn't be able to read the file and the creatures inside that file would not appear in-game.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: 'Phantom' animal effect
« Reply #4 on: May 25, 2008, 05:05:00 am »

Just empty the data/objects folder.
The game uses cache, that's all.


-.-
I've just woke up, thus... sorry for necrothreading.
I'm a kind of sleepy necromancer - I happen to resurrect some old threads in the morning hours...

[ May 25, 2008: Message edited by: Deon ]

Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Doniazade

  • Bay Watcher
    • View Profile
Re: 'Phantom' animal effect
« Reply #5 on: May 25, 2008, 10:08:00 am »

Do you always
Type your posts
Like they're song lyrics
It's kind of annoying
Please stop it
Logged

Helmaroc

  • Bay Watcher
    • View Profile
Re: 'Phantom' animal effect
« Reply #6 on: May 25, 2008, 11:15:00 am »

quote:
Originally posted by Doniazade:
<STRONG>Do you always
Type your posts
Like they're song lyrics
It's kind of annoying
Please stop it</STRONG>

It's his name, it forces the format like that, he's not doing it on purpose.

Logged

Surma

  • Bay Watcher
    • View Profile
Re: 'Phantom' animal effect
« Reply #7 on: May 26, 2008, 03:34:00 am »

quote:
Originally posted by Deon:
<STRONG>...

I've just woke up, thus... sorry for necrothreading.
I'm a kind of sleepy necromancer - I happen to resurrect some old threads in the morning hours...

[ May 25, 2008: Message edited by: Deon ]</STRONG>


A three day old thread is hardly a necrothread O.o

Logged
Re: 'Phantom' animal effect
« Reply #8 on: May 26, 2008, 06:10:00 pm »

It seems that deleting those files in the data/objects
seems to have worked. I am sorry if people are annoyed by
the problems my name cause (not sorry enough to change it
however). But several of the animals are still not appearing,
though I have searched high and low for them. The 'pyre deer'
which should have a veil of fire around them and should be
resistant to this fire seem to never appear:

code:
 [CREATURE:DEER_PYRE]
   [NAME:pyre deer:pyre deer:pyre deer]
   [TILE:'d'][COLOR:4:0:1]
   [LARGE_ROAMING]
   [POPULATION_NUMBER:15:30]
   [CLUSTER_NUMBER:1:4]
   [BENIGN][MEANDERER]
   [PETVALUE:200]
   [GRASSTRAMPLE:0]
   [PREFSTRING:flames][NATURAL][PET]
[BODY:QUADRUPED:TAIL:2EYES:2EARS:NOSE:4HORNS:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:MOUTH]
   [BODYGLOSS:HOOF]
   [MAXAGE:200:300]
   [ATTACK:MAIN:BYTYPE:STANCE:kick:kicks:1:2:BLUDGEON][ATTACKFLAG_WITH]
   [ATTACK:MAIN:BYTYPE:4HORNS:spear:spears:1:6:PIERCE]
   [CHILD:1][CHILDNAME:ember fawn:ember fawns]
   [SIZE:5]
   [FAT:2]
   [CREPUSCULAR]
   [BIOME:FOREST_TAIGA]
   [BIOME:ANY_TEMPERATE_FOREST]
   [STANDARD_FLESH]
   [HEATDAM_POINT:10280]
   [HOMEOTHERM:10180]
   [LAYERING:100]
   [SWIMS_INNATE][SWIM_SPEED:2500]

[BODY:4HORNS]
[BP:RUHORN:upper right horn][CONTYPE:HEAD]


[BP:LUHORN:upper left horn][CONTYPE:HEAD]

[BP:RLHORN:lower right horn][CONTYPE:HEAD]

[BP:LLHORN:lower left horn][CONTYPE:HEAD]

Is it possible that they are dying from their own heat
before entering the map? and does the attack tag to
'spear' have the correct indication token?

Logged
A HREF="http://dffd.wimbli.com/file.php?id=112">Food mod
Instrument mod

The Internet: Where even hundred legged treasure chests can be programmers.

Kagus

  • Bay Watcher
  • Olive oil. Don't you?
    • View Profile
Re: 'Phantom' animal effect
« Reply #9 on: May 26, 2008, 06:22:00 pm »

No, no it doesn't.  The full list of types is on the Wiki, but it's stuff like LOWERBODY, UPPERBODY, HEAD, GRASP, and any other thing which is a tag on a bodypart.  It doesn't refer to bodyparts with that name, it refers to the bodyparts that have a particular tag on them.

Unfortunately, what you're going for would require four different attacks.  One for each horn.

Use the BYTOKEN command and then point to an individual bodypart (RUHORN, LUHORN, RLHORN etc.) for each attack.

Pages: [1]