Sid Meier's Civilization V

Sid Meier's Civilization V

Barbarians Evolved
Tämä keskustelu on lukittu
Charsi  [kehittäjä] 1.8.2015 klo 20.46
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.
Viimeisin muokkaaja on Charsi; 1.8.2015 klo 20.47
< >
Näytetään 1-14 / 14 kommentista
unfortunaly, it didn't affect the city spawn timing
Charsi  [kehittäjä] 2.8.2015 klo 16.56 
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.
Still didnt work :/ isnt it possible to make an if decisions? like if raging barbarians are on 40 turns, else 80
Charsi  [kehittäjä] 3.8.2015 klo 12.17 
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)
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  [kehittäjä] 3.8.2015 klo 15.07 
Delete this line:

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

Otherwise you get a lua error which stops the rest of the script from loading.
Did it, still no effect
Charsi  [kehittäjä] 3.8.2015 klo 15.30 
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.
Viimeisin muokkaaja on Charsi; 3.8.2015 klo 15.31
Weird, still didnt work. Btw, where in the script does it say that spawn times are halfed when raging barbs are on?
Charsi  [kehittäjä] 4.8.2015 klo 10.53 
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.
Viimeisin muokkaaja on Charsi; 4.8.2015 klo 10.55
Charsi  [kehittäjä] 4.8.2015 klo 16.44 
Should be fixed in latest update.
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  [kehittäjä] 6.8.2015 klo 17.47 
Try the direct download link. It's on the main page.
Charsi  [kehittäjä] 11.8.2015 klo 17.16 
Okay I got tired of trying to figure it out and went with a hardcode/hack.
< >
Näytetään 1-14 / 14 kommentista
Sivua kohden: 1530 50