SOLVED

DoppioConPanda

Chieftain
Joined
Feb 22, 2019
Messages
6
Location
Canada Lite™
Why does the following XML code work but the seemingly identical SQL does not? I hate XML, but if that's the only way to get it to work, so be it.
Code:
<GameData>
  <Improvement_TechYieldChanges>
    <Row>
      <ImprovementType>IMPROVEMENT_MINE</ImprovementType>
      <TechType>TECH_STEEL</TechType>
      <YieldType>YIELD_PRODUCTION</YieldType>
      <Yield>1</Yield>
    </Row>
  </Improvement_TechYieldChanges>
</GameData>"

Vs.

Code:
INSERT INTO Improvement_TechYieldChanges (ImprovementType, TechType, YieldType, Yield)
    VALUES ('IMPROVEMENT_MINE', 'TECH_STEEL', 'YIELD_PRODUCTION', 1);
 
what is in Database.log ?

Is there anything else higher up in the SQL file that might contain a syntax error ?

Are you sure your SQL file is even being executed by the game ?
(ie, have you forgotten to add a OnModActivated -- UpdateDatabase for that file when attempting the SQL code)
 
I'm unfamiliar with database.log. Wanna point me in the right direction? I'll try running the code as its own file, but I'm 100% certain the rest of the file works. Thanks for the speedy response.

EDIT: It works fine as its own file. Must be an error in the file, but everything above is working as intended... Line by line dissection it is then. 99 glitches and bugs in the code, 99 glitches and bugs, you take one down, you patch it around, 106 glitches and bugs in the code.
 
Last edited:
Whoward is a godsend. I've used so many of his tutorials. That guy knows everything, I swear! Thanks.

Edit: FOUND IT HOLY COW
 
Last edited:
Back
Top Bottom