Recent content by Prof. Garfield

  1. P

    Question about Hoover Dam

    Hoover Dam will provide every city with a Hydro Plant, regardless of whether the city has a river/mountain (or whatever the condition actually is; I never knew exactly). A city needs a factory or mfg plant in order to get the shield bonus from a power/nuclear/hydro/solar plant, so Hoover Dam...
  2. P

    1937 - Japan Invades China scenario released! Now with Lua!

    I don't see how you could do that using a system that looks like "regular" combat, since you can't move the attacker into the square that you want to attack. If you don't want to generate "munition" units, there are two options that I can think of at the moment: 1. Direct damage to units via...
  3. P

    Small Questions Thread

    I used it to enable unit ranges for land/sea units in the Lua Scenario Template. There is a line in simpleSettings.lua to enable it, and the enabling code is in the General Library under gen.activateRangeForLandAndSea.
  4. P

    1937 - Japan Invades China scenario released! Now with Lua!

    I've played through this scenario (having modified it so that the garrisons have 1 attack), and here are some thoughts. (I built most of the Lua events for this scenario, but didn't have much to do with design or the very substantial Macro events. I wasn't exactly playing blind, but I wasn't...
  5. P

    Over the Reich: Single Player - Development Thread

    Place the units. I don't know of any reason why that would cause problems.
  6. P

    Over the Reich: Single Player - Development Thread

    I wouldn't necessarily put too much effort into this part, since we might want to change the values via Lua so the AI goes on different paths in different playthroughs.
  7. P

    Civ2 ToT videos and music

    Can you post a screenshot of the message? Can you tell me one of the scenarios you started that causes the error? Does the error persist if you revert to the original game.txt files?
  8. P

    Civ2 ToT videos and music

    I've included all the Civ II music converted to .mp3 files as part of my "Exended Music For TOTPP" project, found here: https://github.com/ProfGarfield/ExtendedMusicForTOTPP/tree/main There's a green "Code" button at the top right you click to download a .zip file. If you don't want to be...
  9. P

    "Risky" Opening Strategy - Settlers before Defense

    You shouldn't waste resources on defences unless there is a known threat. If you're playing at a level that needs martial law in the early game, use warriors, not something more expensive. If the level is low enough that you don't need martial law to keep order, you should be going for early...
  10. P

    [TOT] The Centauran Gambit

    Well, I can't recreate the problem with the tiles not changing. A minor point is that civ.getTile(x,y,z).terrainType == 10 doesn't always register as true for oceans. That's because the byte referenced is like this: abcdXXXX XXXX is 0-15, which give the terrain type. However, the "a" bit...
  11. P

    [TOT] The Centauran Gambit

    Can you please upload the events.lua file that causes these errors? This way, I can try to recreate the problem with the exact file you're using. Just so we're clear: If you start a new extended original game, and play until after turn 5, the "Earth" will have its terrain changed, but...
  12. P

    [TOT] The Centauran Gambit

    I presume you kept the old events.txt file around. What did you name it? Here's something that I've tried: Events.txt -- Completely empty Events (copy).txt -- Extended original events, with this event added: @IF TURN turn=every @THEN TEXT The Macro Events Exist ENDTEXT @ENDIF Events.lua --...
  13. P

    [TOT] The Centauran Gambit

    Are you sure? I just tried it, and it changes both maps on turn 5. The loop for z = 0,1 do Makes sure stuff happens for the z coordinate, which is the map coordinate. So, z=0,1 means do something for maps 0 through 1 inclusive. (z=0,3 would mean maps 0,1,2 and 3.) Just so that I'm not...
  14. P

    [TOT] The Centauran Gambit

    If you don't want to make a large rectangle of plains, here is some code to select a suitable landing location: -- Returns a table of tiles around a center tile, the -- size of a city 'footprint'. The indices are listed below -- and are based on how city.workers determines which tiles --...
  15. P

    [TOT] The Centauran Gambit

    Did you start the game with an events.txt file that isn't empty? Maybe the macro events got registered or something. Here's some (untested -- let me know if I made a mistake you can't easily fix) code to achieve this: civ.scen.onTurn(function (turn) -- Warn when Reality Engineering (98) is...
Top Bottom