Author Topic: Rulset, division by zero, kablam!  (Read 1897 times)

Offline thunderwalker87

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Rulset, division by zero, kablam!
« on: November 12, 2019, 12:18:55 pm »
Hello,

So... I have been enjoying openxcom for maybe about three years now it seems. And I haven't had any challenges with it (minus mods... but thats another story)...

So... I tried to install some mods... it didn't work... the game still worked however. A day or so passed and I was fiddling around in the ruleset as I have for years now... and I tried to load the game and it game me an error message. Oops. I restored the last changes and reloaded the game... now it said 'division by zero error'... so... really oops... I restored a previous version of the ruleset I saved... still the same issue. So... I decided lets go to an old system backup I have from 2018 and simply reload the whole file to see if that does anything... still the same error.

I'm really really really confused now...

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 7362
    • View Profile
Re: Rulset, division by zero, kablam!
« Reply #1 on: November 12, 2019, 01:34:41 pm »
Hi

Can you attach a screenshot, a log file, or anything that can help?
Which version of openxcom do you have? Which file(s) did you try to change? Etc.

We know literally nothing about your issue... just that you messed up and don't know how to fix it.

Offline thunderwalker87

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Re: Rulset, division by zero, kablam!
« Reply #2 on: November 12, 2019, 07:13:46 pm »
The file I was modifying was Xcom1Ruleset.rul


Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 7362
    • View Profile
Re: Rulset, division by zero, kablam!
« Reply #3 on: November 12, 2019, 07:29:34 pm »
The file I was modifying was Xcom1Ruleset.rul

Yeah, modifying that file can easily cause crashes.

If you can't restore it, I'd recommend uninstalling and doing a fresh new install.

Offline thunderwalker87

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Re: Rulset, division by zero, kablam!
« Reply #4 on: November 12, 2019, 07:41:48 pm »
I don't have access to my xcom stuff... minus what is already installed. Will I just need to uninstall and reinstall openxcom? If so how exactly should I do that? IF I need to do all of the xcom file... if there really is no other way... I guess I may have to simply buy it again. :'(

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 7362
    • View Profile
Re: Rulset, division by zero, kablam!
« Reply #5 on: November 12, 2019, 07:47:02 pm »
You don't need to buy it again. The files are still somewhere in your OpenXcom installation. Back them up before uninstalling.

Offline thunderwalker87

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Re: Rulset, division by zero, kablam!
« Reply #6 on: November 17, 2019, 08:45:23 am »
Bought xcom from steam and then installed it. Then I got the openxcom installer which opened just fine. NOW it seems the older version of my game works even though I haven't done anything to it.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 7362
    • View Profile
Re: Rulset, division by zero, kablam!
« Reply #7 on: November 17, 2019, 09:03:47 am »
You really should uninstall/delete the old version before installing the new one.