[1.04] Custom Random Events not spawning

I have created a very basic random event, and when I went to test it (set the trigger chance to 100%), it actually spawned the Alchemist's offer (where you get the sand golem's sand).  

You should be able to reproduce the problem by putting this quest in your mods folder:  https://dl.dropbox.com/u/12727985/QuestWizard_TheTravellingCircus.xml

 

You'll notice at turn 3 (and every turn after) that you get the Alchemist's Offer quest.   

 

9,651 views 6 replies
Reply #1 Top

I suspect that you can't rebuild your datazip to include this new info.  So instead of being inserted in the list of events its triggering itself, its triggering its number in the existing list which is the alchemists offer.

So the question is, why can't your computer rebuild its '..\FallenEnchantress\data\Data.zip' file?

Can you give me a few screenshots to check out:

1. A screenshot of the file in that directory

2. A screenshot of the properties of that file (on the general tab)

3. A screenshot of the properties of that file (on the security tab)

Reply #2 Top

If I may, the <TriggerType>TurnNumber</TriggerType> is not working from /mods/ (who knows why - lots of stuff doesn't). What you'll want to do is use TotalPopulation instead which works.

   <TriggerType>TotalPopulation</TriggerType>
  <TriggerData>400</TriggerData>>
    <TriggerOrigin>EventLocation</TriggerOrigin>

TotalPopulation triggers can trigger for AI players, just so you are warned.

Edit: Note that when using TotalPopulation, PostTriggerChance does nothing, and <TriggerChance>4</TriggerChance> is checked every turn you are above the number in TriggerData. So a slight difference there.

Reply #3 Top

I also see the same problems. Adding the file to '..\FallenEnchantress\data\english' directory allows the quest to work just fine. It's something about putting things in the '\documents\my games\fallenenchantress\quests\' directory as heavenfall says.

Reply #4 Top

Derek, 

 

here are the screenshots you requested:

 

1) http://screencast.com/t/VYwoUo1Ei8

2) http://screencast.com/t/Hl6ODq0u

3) http://screencast.com/t/XuqirC3dVeA

 

I should note that I am able to run other mods without issues, so I assume the datazip is being rebuilt.  I suspect that as the others have said there is an issue with the mod directory and certain types of fields.

 

 

Reply #5 Top

Its fixed with 1.01.

Heavenfall, TurnNumber works for us when loading form /mods/.  But you do have to have a city for it to trigger.  So if you are testing by just hitting end turn until you get to the given turn you may not see them occur.

Reply #6 Top

I meant that it "didn't work" in the sense that you'd run into the same bug Murteas did.

If you guys are in the neighbourhood of fixing mod bugs, do please check out https://forums.elementalgame.com/434780