PDA

View Full Version : first selfmade map with some problems



BaukeS
June 26th, 2015, 17:58
I just finished making a map with the official map maker.
but I have a few questions, about it:

1. how can I give Red some starting treasure?
2. how can I give red the abillity to make rooms like trainingroom, library, treasureroom and hachery?
3. how can I give all the keepers the abillity to research all the buildings and spells?

Metal Gear Rex
June 26th, 2015, 19:04
You need a script. See DK1 documents (http://keeper.lubiki.pl/dk1_docs/), or more specifically, DK1 script reference (http://keeper.lubiki.pl/dk1_docs/dk_scripting_ref.htm).

BaukeS
June 26th, 2015, 19:41
thanks, that was what I was searching for

BaukeS
June 26th, 2015, 21:11
I used it and made a script:

SET_GENERATE_SPEED(700)

REM COMPUTER PLAYER STUFF
COMPUTER_PLAYER(PLAYER1,10)

COMPUTER_PLAYER(PLAYER2,10)

COMPUTER_PLAYER(PLAYER3,10)

MAX_CREATURES(PLAYER0,60)
START_MONEY(PLAYER0,10000)

MAX_CREATURES(PLAYER1,50)
START_MONEY(PLAYER1,10000)

MAX_CREATURES(PLAYER2,50)
START_MONEY(PLAYER2,10000)

MAX_CREATURES(PLAYER3,50)
START_MONEY(PLAYER3,10000)

ADD_CREATURE_TO_POOL(TROLL,40)
ADD_CREATURE_TO_POOL(DRAGON,40)
ADD_CREATURE_TO_POOL(DEMONSPAWN,16)
ADD_CREATURE_TO_POOL(FLY,16)
ADD_CREATURE_TO_POOL(DARK_MISTRESS,48)
ADD_CREATURE_TO_POOL(SORCEROR,40)
ADD_CREATURE_TO_POOL(BILE_DEMON,40)
ADD_CREATURE_TO_POOL(BUG,16)
ADD_CREATURE_TO_POOL(SPIDER,24)
ADD_CREATURE_TO_POOL(HELL_HOUND,30)
ADD_CREATURE_TO_POOL(TENTACLE,30)
ADD_CREATURE_TO_POOL(ORC,40)
ADD_CREATURE_TO_POOL(WIZARD,5)
ADD_CREATURE_TO_POOL(BARBARIAN,5)
ADD_CREATURE_TO_POOL(ARCHER,5)
ADD_CREATURE_TO_POOL(MONK,5)
ADD_CREATURE_TO_POOL(DWARFA,5)
ADD_CREATURE_TO_POOL(GIANT,5)
ADD_CREATURE_TO_POOL(THIEF,5)
ADD_CREATURE_TO_POOL(SAMURAI,5)

REM Creature availability
CREATURE_AVAILABLE(ALL_PLAYERS,TROLL,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,DRAGON,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,DEMONSPAWN,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,FLY,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,DARK_MISTRESS,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,SORCEROR,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,BILE_DEMON,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,BUG,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,SPIDER,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,HELL_HOUND,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,TENTACLE,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,ORC,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,WIZARD,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,BARBARIAN,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,ARCHER,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,MONK,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,DWARFA,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,GIANT,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,THIEF,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,SAMURAI,1,1)

REM Room availability
ROOM_AVAILABLE(ALL_PLAYERS,TREASURE,1,1)
ROOM_AVAILABLE(ALL_PLAYERS,LAIR,1,1)
ROOM_AVAILABLE(ALL_PLAYERS,GARDEN,1,1)
ROOM_AVAILABLE(ALL_PLAYERS,TRAINING,1,1)
ROOM_AVAILABLE(ALL_PLAYERS,RESEARCH,1,1)
ROOM_AVAILABLE(ALL_PLAYERS,WORKSHOP,1,0)
ROOM_AVAILABLE(ALL_PLAYERS,BARRACKS,1,0)
ROOM_AVAILABLE(ALL_PLAYERS,BRIDGE,1,0)
ROOM_AVAILABLE(ALL_PLAYERS,PRISON,1,0)
ROOM_AVAILABLE(ALL_PLAYERS,TORTURE,1,0)
ROOM_AVAILABLE(ALL_PLAYERS,SCAVENGER,1,0)
ROOM_AVAILABLE(ALL_PLAYERS,TEMPLE,1,0)
ROOM_AVAILABLE(ALL_PLAYERS,GRAVEYARD,1,0)

REM Spells availability
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_HAND,1,1)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_IMP,1,1)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_SLAP,1,1)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_SIGHT,1,0)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_CALL_TO_ARMS,1,0 )
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_HEAL_CREATURE,1, 0)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_LIGHTNING,1,0)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_PROTECT,1,0)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_CONCEAL,1,0)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_DISEASE,0,0)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_CAVE_IN,1,0)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_CHICKEN,1,0)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_DESTROY_WALLS,1, 0)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_HOLD_AUDIENCE,1, 0)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_OBEY,1,0)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_SPEED,1,0)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_ARMAGEDDON,1,0)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_POSSESS,1,0)

REM Doors availability
DOOR_AVAILABLE(ALL_PLAYERS,WOOD,1,0)
DOOR_AVAILABLE(ALL_PLAYERS,BRACED,1,0)
DOOR_AVAILABLE(ALL_PLAYERS,STEEL,1,0)
DOOR_AVAILABLE(ALL_PLAYERS,MAGIC,1,0)

REM TRAPS availability
TRAP_AVAILABLE(ALL_PLAYERS,BOULDER,1,0)
TRAP_AVAILABLE(ALL_PLAYERS,ALARM,1,0)
TRAP_AVAILABLE(ALL_PLAYERS,POISON_GAS,1,0)
TRAP_AVAILABLE(ALL_PLAYERS,LIGHTNING,1,0)
TRAP_AVAILABLE(ALL_PLAYERS,WORD_OF_POWER,1,0)
TRAP_AVAILABLE(ALL_PLAYERS,LAVA,1,0)

but when I start the game, the whole program terminates.
Is there something wrong with my script?
by the way, I use keeperFX

mefistotelis
June 26th, 2015, 22:34
I see, there's an error in "Unhandled research type" message logging.

I will fix that; but you may solve the issue by using valid RESEARCH types.

BaukeS
June 26th, 2015, 23:14
thanks for the hint, I deleted those commands and it works.
the level doesn'e terminate the whole program, but I still have a problem:
no creatures are attracted from the portals.
None of the 4 keepers get any creatures and without creatures, the game is useless.
What did I do wrong?

abedy
June 27th, 2015, 07:35
how many creatures is on the map?

YourMaster
June 27th, 2015, 09:15
You can Zip all files of your map, and post it here so we can take a look at what's wrong. Script seems all right.

BaukeS
June 27th, 2015, 09:57
You can Zip all files of your map, and post it here so we can take a look at what's wrong. Script seems all right.

here it is:
1600

YourMaster
June 27th, 2015, 14:25
You are past the creature limit. The game only supports 255 creatures in any level.

You've preplaced a lot of them. Remove almost all of the creatures already on the map. Use script to add creatures to the level when the player is near.

Also, you've added your level to DDISK1.LIF. This works, but it would be best to make a separate lif file just for this map. Copy DDISK1.LIF, rename it to MAP00200.LIF and remove all levels from it that are not your own.
You've called your map LEVEL1, that suggests to me perhaps you want to make a campaign. That's possible to:
https://keeperfx.googlecode.com/svn/trunk/keeperfx/docs/creating_campaigns.txt

BaukeS
June 27th, 2015, 16:22
You are past the creature limit. The game only supports 255 creatures in any level.

You've preplaced a lot of them. Remove almost all of the creatures already on the map. Use script to add creatures to the level when the player is near.

Also, you've added your level to DDISK1.LIF. This works, but it would be best to make a separate lif file just for this map. Copy DDISK1.LIF, rename it to MAP00200.LIF and remove all levels from it that are not your own.
You've called your map LEVEL1, that suggests to me perhaps you want to make a campaign. That's possible to:
https://keeperfx.googlecode.com/svn/trunk/keeperfx/docs/creating_campaigns.txt
Ok, I understand, but I have not yet the intention of making a campaign, but I just called it level 1, because it my first level

BaukeS
June 27th, 2015, 21:12
thanks, that was the solution.
But there is still a bug in the game:
at random places in the dungeon there are hell-hounds, with no owner, but also not neutral.
they just stand there and do nothing.
does anybody know how to fix that?

YourMaster
June 27th, 2015, 21:48
I don't see them. If this only happens on the newest version of your map, please share again.

BaukeS
June 27th, 2015, 23:07
I don't see them. If this only happens on the newest version of your map, please share again.

ok, here it is:
1602

but I have also another question:
how can I make neutral creatures apear?
Because for neutral, there is no name, I didn't fill in a name, but that doesn't work.
what is the right way, to do that?

YourMaster
June 27th, 2015, 23:41
how can I make neutral creatures apear?
Because for neutral, there is no name, I didn't fill in a name, but that doesn't work.
what is the right way, to do that?
You can't. I think you should (https://code.google.com/p/keeperfx/issues/detail?id=395), but bullfrog never considered this.
In most situations though you can work around this by placing the neutrals on the map from the start. Just always design your maps keeping in mind to never exceed 255 creatures over all players and neutral combined.

The new file you shared is the same as before, still with too many creatures from the start and no hell hounds.

BaukeS
June 28th, 2015, 11:38
You can't. I think you should (https://code.google.com/p/keeperfx/issues/detail?id=395), but bullfrog never considered this.
In most situations though you can work around this by placing the neutrals on the map from the start. Just always design your maps keeping in mind to never exceed 255 creatures over all players and neutral combined.

The new file you shared is the same as before, still with too many creatures from the start and no hell hounds.

whoops, you're right, that was the wrong one, here is the right:

YourMaster
June 28th, 2015, 15:43
I've played a bit with the map explored, but see no hell hounds. When you see it again, save your game and share the savegame.
Have you by any chance made modifications to some of the config files?

BaukeS
June 28th, 2015, 17:57
no, I don't know what you mean and I have no savegame, but I have discovered, that they are only added to libraries.
I don't know whether you have tried that?

YourMaster
June 28th, 2015, 19:35
I just did, saw nothing strange. So, if it happens again for you make a savegame, and perhaps add your logfile too. It shouldn't happen.

Woudo
June 29th, 2015, 00:08
Sounds to me like all kinds of a thing (torches perhaps) are being visually replaced for him and only him.
Print screen, paste it here http://snag.gy/ and show us what's happening.

I gotta figure out how to work column mode in Adikted. A map where every thing in the game has been replaced by a bile demon. Yesssss

BaukeS
June 29th, 2015, 09:22
here it is:

http://www.mupload.nl/img/pbef53ihwjv.jpg

I've cropped it a bit, because the rest isn't needed and the picture was too big to upload.
but here you can clearly see, there is a hellhound in my libraries, with no owner, that is running all the time, without moving

YourMaster
June 29th, 2015, 09:41
Yes, I see, but that gives me no new information as it is exactly as you described. If you have a savegame which you share I can load it to see if it happens for me too. If so we can share the savegame on the issue tracker so the developer can take a look and perhaps fix the bug.
If I load your savegame and I see no problem than there is probably something corrupt with your game.

Do you have spellbooks in your library? Which version of the game do you have?

BaukeS
June 29th, 2015, 13:19
in this zipfile is my savegame.
1604

I have version keeper_ccp_0_41_complete (2)

abedy
June 29th, 2015, 13:40
I have noticed this before. It looks like a hound but cant do anything with it. looks more like a decoration :D Is not showing in creature list

YourMaster
June 29th, 2015, 15:42
Ok, upgrade to version 0.4.6 (http://keeper.lubiki.pl/html/dk_keeperfx_dwnld.php) and see if your problem goes away. Your version is several years old.

BaukeS
June 29th, 2015, 16:21
that's srange, Because I've downloaded it less than a month ago at the place your link sends me to.

0etelaer
April 26th, 2016, 00:45
here it is:

http://www.mupload.nl/img/pbef53ihwjv.jpg

I've cropped it a bit, because the rest isn't needed and the picture was too big to upload.
but here you can clearly see, there is a hellhound in my libraries, with no owner, that is running all the time, without moving

That happens a lot while playing, also in the original levels.
Sometimes a tunneler will change into a Hell Hound also.
Most often it happens in the library.