yvsarkisyan / keeperfx

Automatically exported from code.google.com/p/keeperfx
0 stars 0 forks source link

Time Bomb spell researched #402

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
(please describe a single problem, providing as much detail as possible)
1.Make a quick_objective telling about time bomb
2.Spell Time Bomb is researched immediately when creature once steps on library
3.Nothing script command will work to remove the time bomb research

What is the expected output? What do you see instead?
Expected - Never see a time bomb spell in anyhow
Instead - It shows up, no idea how

What version of the product are you using? On what operating system?
(you can see your KeeperFX version by viewing keeperfx.log in notepad)
0.4.5.1422

Please provide any additional information below.
(describe one bug per report, but with all you can gather about it)

Talking about the time bomb, the time bomb spell itself will be researched 
eventually. This is absolutely a bug, because I haven't scripted at all or even 
touched in anyhow. It is clearly a bug, but what could cause? A bit annoying as 
well. It seems happen only what I did reproduce

Original issue reported on code.google.com by UnknownM...@Hotmail.com on 25 Oct 2014 at 10:27

GoogleCodeExporter commented 9 years ago
Research order is defined in "rules.cfg", and there's no "POWER_TIME_BOMB" on 
the list there.
Unless you add it there or use RESEARCH*() script command, the spell cannot be 
researched.

If you've found a case where it is researched anyway, please provide a detailed 
means of reproduction.

I added the following to level 3 script:

IF_AVAILABLE(PLAYER0,POWER_TIME_BOMB >= 1)
    QUICK_INFORMATION(8,"GOT TIME BOMB!!")
ENDIF

And the message never appeared.

Original comment by mefistotelis on 25 Oct 2014 at 11:28

GoogleCodeExporter commented 9 years ago
Okay, then...

...here is a map, I think it is better to test it ( it is a map for campaign )

Test like this:

Get some gold, and wait when any natural researcher pops out from entrance, 
then drop it to library and see what happens. If it happens only with me, I 
think I need fresh new installation ( I haven't changed anything on rules.cfg 
or anything else, only scripts )

Thanks in advance

Original comment by UnknownM...@Hotmail.com on 27 Oct 2014 at 10:24

Attachments:

GoogleCodeExporter commented 9 years ago
I can reproduce the issue, and see nothing in the script to explain it.

Original comment by Loobinex on 27 Oct 2014 at 10:44

GoogleCodeExporter commented 9 years ago
It looks like this line causes it:
MAGIC_AVAILABLE(PLAYER0,POWER_SLAP,1,0)

This is quite unexpected - I will check what's wrong.

Original comment by mefistotelis on 27 Oct 2014 at 5:06

GoogleCodeExporter commented 9 years ago
The problem was that there was no text name nor tooltip for Slap spell - 
instead it was pointing to Time Bomb. But really, it was the Slap spellbook.

Similar but deeper problem was with Possess spell - there was no spellbook for 
it. I added a new object to represent the spellbook, but it most likely won't 
work completely as intended - there are still some unrewritten functions, and 
the original code won't recognize this new object as spellbook.

Original comment by mefistotelis on 29 Oct 2014 at 10:05

GoogleCodeExporter commented 9 years ago
Solved, so closing.

Original comment by mefistotelis on 29 Nov 2014 at 12:24