Jump to content

panther42

Community Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by panther42

  1. @gameboy, just copy over the two lines(178 & 766) from r19924 into your delenda Player.js file. I tested and works fine...
  2. @wowgetoffyourcellphone FYI if not already known or intended design. If trying to build wall as Carthaginians: Will get the following errors:
  3. thanks @stanislas69, but I do not want to bother these persons to teach me something, which I can read tutorials and the game code to try and figure out. I'm sure they have plenty to do. I did find a gameplay item I wanted to point out to @wowgetoffyourcellphone. Defensive Towers. Unless I've missed something, here is my deduction of the implementation in Delenda. Defensive towers as defined in template_structure_defense_defense_tower.xml have MaxArrowCount of 3: Via tech upgrades(pair_tower_01), you can choose Sentries, "Defense Towers +2 default arrows, but now each tower costs 1 population.", or Crenellations, "Defense Towers +50% more arrows fired per garrisoned soldier." Crenellations do not work as intended, due to the MaxArowCount. Here is tech upgrade affects: "modifications": [{"value": "BuildingAI/GarrisonArrowMultiplier", "multiply": 1.5}] But here is the game function which applies the number of arrows in BuildingAI.js: As you can see, it uses the Math.min between the count(see code), and the MaxArrowCount. Using examples above, GetDefaultArrowCount(1) + (archersGarrisoned(let's use 5) * GarrisonArrowMultiplier(1.5 for Crenellations)) = 9(rounded) But, you only shoot 3. I could put 15 archers in the defense tower(hypothetical), and could still only shoot 3 arrows. Just an observation. I was wondering why my defense towers couldn't hold the enemy off. This may be intended behavior for @wowgetoffyourcellphone design.
  4. the main problem, and I'm sure you're aware, is the AI. The AI is "hard coded" in to many instances, and mod's which stray from the basic template fail. Delenda has to many user input decisions, which fails with the AI. Some are decisions you could have the AI "roll the dice", and chose based on percentage. I.E. if Math.floor((Math.random() * 10) + 1) < 5 then... I watched two AI against each other, and one was Maur, which has the worker elephant. Since the storehouse is disabled in Del for them at the beginning, the AI only had one worker elephant the entire time, and was severely limited for gathering resources... I come from a game which was quite similar in scripting language, but this javascript is giving me some headaches trying to figure out.
  5. Was a fix for this error ever determined? I get that error on the National Industries Level 1. It times out at 0:01 remaining, and spits out the error. Cannot use any of the techs in the next level, and cannot spawn the chin_champion_chariot If you start from the left side, you can do the upgrades for the first three, then fails on Nationalized Industries(fourth). If you start from the Nationalized Industries(fourth), it will fail, and you cannot click at the top to stop it, and select any of the first three. Can you have brackets[] inside the code block? {"value": "Cost/BuildTime", "multiply": 0.1, "affects": ["Storehouse", "Farmstead"]} Compared to another example from attack_citizensoldiers_will, where multiple classes are not: {"value": "Attack/Melee/Hack", "multiply": 1.2, "affects": "CitizenSoldier Melee"}
  6. Thank you to all! Very informative posts.
  7. I don't believe that is what the schema entry is for... more for template on how to make a template_unit or template_structure, etc. Main question is, can a MOD add a Class to Classes or VisibleClasses in the game, to be used for i.e. technologies, etc. Questions: What had me thinking about this, is going through Delenda, and seeing technology affects applied to such entities as "Gatherer". I could not find "Gatherer" in main game. CultStatue is another. Does just adding it to VisibleClasses, add it to the game? Seems to answer some of above questions, if so. Is there a command to query all Classes and VisibleClasses loaded?
  8. Where can you find all of the available entity classes in the game listed? I looked on trac.wildfiregames.com, but all links to entity documentation give a non-working page: entity documentation. Looking for where in the game entity is defined, such as "Worker", "Citizen Soldier", etc. for use in such things as templates. "affects": ["Worker"] Thank You
  9. Sorry for confusion. I messed up on the getPhaseEntityRequirements function. It is actually line 2201 of headquarters.js: this.checkPhaseRequirements(gameState, queues); This function is in binaries/data/mods/public/simulation/ai/petra/phaseRequirements.js, which is missing
  10. Justus, I use your MOD all of the time. I would be willing to help you out with bugs. I have found a couple in the recent github updates you have posted. I use the latest SVN to play your MOD. In theb_mechanical_siege_oxbeles_packed.xml you use <Pack> <Entity>units/atheb_mechanical_siege_oxybeles_unpacked</Entity> <Time>10000</Time> <State>packed</State> </Pack> this should be "theb", not "atheb" Also, in mainmenu.xml: <objects> <script file="gui/common/music.js"/> <script file="gui/common/functions_global_object.js"/> <script file="gui/common/functions_utility_error.js"/> <script file="gui/pregame/mainmenu.js"/> <script directory="gui/pregame/backgrounds/"/> "gui/common/functions_utility_error.js" was removed in 19781. AI fails because it is missing the function for gameState.getPhaseEntityRequirements(this.phasing).length) in binaries/data/mods/public/simulation/ai/petra/headquarters.js. This is a separate file under binaries/data/mods/public/simulation/ai/petra/phaseRequirements.js listed in D654 This file is missing. This is from github 6/20/17 files.
  11. Is this related to Delenda, or just misplaced?
×
×
  • Create New...