Sid Meier's Civilization V

Sid Meier's Civilization V

Barbarians Evolved
此主题已被锁定
Charsi  [开发者] 2015 年 8 月 1 日 下午 8: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.
最后由 Charsi 编辑于; 2015 年 8 月 1 日 下午 8:47
< >
正在显示第 1 - 14 条,共 14 条留言
Xobra 2015 年 8 月 2 日 上午 11:13 
unfortunaly, it didn't affect the city spawn timing
Charsi  [开发者] 2015 年 8 月 2 日 下午 4: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.
Xobra 2015 年 8 月 3 日 上午 11:40 
Still didnt work :/ isnt it possible to make an if decisions? like if raging barbarians are on 40 turns, else 80
Charsi  [开发者] 2015 年 8 月 3 日 下午 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)
Xobra 2015 年 8 月 3 日 下午 3:05 
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  [开发者] 2015 年 8 月 3 日 下午 3:07 
Delete this line:

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

Otherwise you get a lua error which stops the rest of the script from loading.
Xobra 2015 年 8 月 3 日 下午 3:25 
Did it, still no effect
Charsi  [开发者] 2015 年 8 月 3 日 下午 3: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.
最后由 Charsi 编辑于; 2015 年 8 月 3 日 下午 3:31
Xobra 2015 年 8 月 4 日 上午 10:11 
Weird, still didnt work. Btw, where in the script does it say that spawn times are halfed when raging barbs are on?
Charsi  [开发者] 2015 年 8 月 4 日 上午 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.
最后由 Charsi 编辑于; 2015 年 8 月 4 日 上午 10:55
Charsi  [开发者] 2015 年 8 月 4 日 下午 4:44 
Should be fixed in latest update.
Xobra 2015 年 8 月 6 日 上午 8:25 
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  [开发者] 2015 年 8 月 6 日 下午 5:47 
Try the direct download link. It's on the main page.
Charsi  [开发者] 2015 年 8 月 11 日 下午 5:16 
Okay I got tired of trying to figure it out and went with a hardcode/hack.
< >
正在显示第 1 - 14 条,共 14 条留言
每页显示数: 1530 50