Sid Meier's Civilization V

Sid Meier's Civilization V

Barbarians Evolved
This topic has been locked
Charsi  [developer] 1 Aug, 2015 @ 8:46pm
Raging Barbarians - No Effect on Spawn Timing?
If this is a problem for you please try the following:

In BarbariansEvolved.lua change

bRagingBarbarians = Game.GetCustomOption("GAMEOPTION_RAGING_BARBARIANS")

to:

bRagingBarbarians = PreGame.GetGameOption("GAMEOPTION_RAGING_BARBARIANS")

And let me know if that resolves the issue.
Last edited by Charsi; 1 Aug, 2015 @ 8:47pm
< >
Showing 1-14 of 14 comments
Xobra 2 Aug, 2015 @ 11:13am 
unfortunaly, it didn't affect the city spawn timing
Charsi  [developer] 2 Aug, 2015 @ 4:56pm 
Try this instead:

bRagingBarbarians = Game.IsOption(GameOptionTypes.GAMEOPTION_RAGING_BARBARIANS)

But then you have to delete a line a bit further down the page where the value of bRagingBarbarians is printed out to console.
Xobra 3 Aug, 2015 @ 11:40am 
Still didnt work :/ isnt it possible to make an if decisions? like if raging barbarians are on 40 turns, else 80
Charsi  [developer] 3 Aug, 2015 @ 12:17pm 
That's exactly what i'm doing. The problem is the boolean is evaluating to false for some people even when it should be true.

Try this:

bRagingBarbarians = (PreGame.GetGameOption("GAMEOPTION_RAGING_BARBARIANS") == 1)
Xobra 3 Aug, 2015 @ 3:05pm 
still didnt work furhtermore i noticed that the barbs never develop mire than 1 city,
and heres is the changed part of the setting in the lua, maybe i did somthing wrong
--######################################################################## -- Init print("-------------------- Barbarians Evolved Load Start --------------------") --######################################################################## -- Globals and pre-game settings iBarbMinorCiv = GameDefines.MAX_CIV_PLAYERS bRagingBarbarians = (PreGame.GetGameOption("GAMEOPTION_RAGING_BARBARIANS") == 1) iCityUpdateTypeBanner = CityUpdateTypes.CITY_UPDATE_TYPE_BANNER -- Set Turns Per Barb Evolution based on gamespeed iGameSpeed = Game.GetGameSpeedType() -- standard/modded gamespeed iTurnsPerBarbEvolution = 80 -- marathon/epic if (iGameSpeed == 0) or (iGamespeed == 1) then iTurnsPerBarbEvolution = 120 end -- quick if (iGameSpeed == 3) then iTurnsPerBarbEvolution = 40 end print("Globals and pre-game settings:") print("iGameSpeed: [" .. iGameSpeed .. "]") print("iBarbMinorCiv: [" .. iBarbMinorCiv .. "]") print("bRagingBarbarians: [" .. bRagingBarbarians .. "]") print("iTurnsPerBarbEvolution: [" .. iTurnsPerBarbEvolution .. "]") print("iCityUpdateTypeBanner: [" .. iCityUpdateTypeBanner .. "]") print("Checking DLC...") isUsingBNW = UsingBNW() isUsingGNK = UsingGNK()
Charsi  [developer] 3 Aug, 2015 @ 3:07pm 
Delete this line:

print("bRagingBarbarians: [" .. bRagingBarbarians .. "]")

Otherwise you get a lua error which stops the rest of the script from loading.
Xobra 3 Aug, 2015 @ 3:25pm 
Did it, still no effect
Charsi  [developer] 3 Aug, 2015 @ 3:30pm 
i'm pretty stumped by this...

If all else fails replace the bRagingBarbarians line with the following:

bRagingBarbarians = true

That will force the mod to think you ticked Raging Barbarians whether you did or not.
Last edited by Charsi; 3 Aug, 2015 @ 3:31pm
Xobra 4 Aug, 2015 @ 10:11am 
Weird, still didnt work. Btw, where in the script does it say that spawn times are halfed when raging barbs are on?
Charsi  [developer] 4 Aug, 2015 @ 10:53am 
Uh... uh... holy sh...

There's a line missing.

It's supposed to be right below this:

-- quick if (iGameSpeed == 3) then iTurnsPerBarbEvolution = 40 end if bRagingBarbarians then iTurnsPerBarbEvolution = iTurnsPerBarbEvolution / 2 end

What the heck? It's supposed to be there. I didn't even realize it was missing in the code block you posted above.

I must have published the wrong version to workshop somehow, or something. I am going to have to push an update tonight.
Last edited by Charsi; 4 Aug, 2015 @ 10:55am
Charsi  [developer] 4 Aug, 2015 @ 4:44pm 
Should be fixed in latest update.
Xobra 6 Aug, 2015 @ 8:25am 
well, i logged into steam today, started civ v and checked the mod section. no updated. so i unsubbed, resubbed and started a game with raging barbs. guess, what 80 rounds. i checked the lua and could find any line with
if bRagingBarbarians then iTurnsPerBarbEvolution = iTurnsPerBarbEvolution / 2
Charsi  [developer] 6 Aug, 2015 @ 5:47pm 
Try the direct download link. It's on the main page.
Charsi  [developer] 11 Aug, 2015 @ 5:16pm 
Okay I got tired of trying to figure it out and went with a hardcode/hack.
< >
Showing 1-14 of 14 comments
Per page: 1530 50