Iter Vehemens Ad Necem

Want to beat the game a cheater? Figure out Savegame file formats here.
Post Reply
DarkStar88
ultra-n00b
Posts: 4
Joined: Tue Feb 15, 2011 5:32 pm

Iter Vehemens Ad Necem

Post by DarkStar88 » Tue Feb 15, 2011 6:00 pm

My favorite roguelike game of all time, except for two little problems:

1. The savegame files are HUGE for such a simple game; an extended game can grow your save folder to hundreds of Megabytes. Since they compress to almost nothing I suspect the fault is with the game itself.

2. It is quite possible to overload the engine and permanently have attributes like 'invisible' or 'confused'. This can be quite a pain, especially the former as it means you can't trade with shopkeepers as they can't see you!

Could someone could give me a hand in finding where the game stores what in the save files? Even just being able to turn on/off the aforementioned attributes would be great - a full editor (add/remove items, change stats, etc.) would be icing on the cake.

Original homepage, including source downloads:

http://ivan.sourceforge.net/download.html

The most active (and possibly only) homepage/fansite:

http://www.attnam.com/

EDIT: A basic course in IVAN's scripting. Well worth a read.

http://ivan.sourceforge.net/script/
Last edited by DarkStar88 on Sat Feb 19, 2011 8:38 pm, edited 1 time in total.

User avatar
Dinoguy1000
Site Admin
Posts: 709
Joined: Mon Sep 13, 2004 1:55 am
Location: The wiki.
Has thanked: 104 times
Been thanked: 125 times

Re: Iter Vehemens Ad Necem

Post by Dinoguy1000 » Sat Feb 19, 2011 5:35 am

Nice to see the source is available for the game; I could probably track down the code that actually reads/writes the save files. I may look at this sometime, but not now - I've got too many other things going on ATM. :wink:
Welcome to Xentax!

Rules | Requests | Wiki

If you run across a post that breaks the rules, please PM Craptain, Mr.Mouse, or myself - we will handle it from there.

User avatar
Mr.Mouse
Site Admin
Posts: 4034
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 413 times
Been thanked: 547 times
Contact:

Re: Iter Vehemens Ad Necem

Post by Mr.Mouse » Sat Feb 19, 2011 10:31 am

@dino: like building the dome.

User avatar
Dinoguy1000
Site Admin
Posts: 709
Joined: Mon Sep 13, 2004 1:55 am
Location: The wiki.
Has thanked: 104 times
Been thanked: 125 times

Re: Iter Vehemens Ad Necem

Post by Dinoguy1000 » Sat Feb 19, 2011 7:17 pm

Mr.Mouse wrote:@dino: like building the dome.
:owned2:
Welcome to Xentax!

Rules | Requests | Wiki

If you run across a post that breaks the rules, please PM Craptain, Mr.Mouse, or myself - we will handle it from there.

WRS
ultra-veteran
ultra-veteran
Posts: 596
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 73 times
Been thanked: 132 times

Re: Iter Vehemens Ad Necem

Post by WRS » Tue Feb 22, 2011 11:30 pm

well game::Save (game.cpp, 770) makes the save:

it writes a bunch of player attributes,
the equipment,
attributes,
dungeons,
gods,
teams,
current level/wilderness,
other player stats

as a guess, the dungeons are huge.

edit

the states hold if you're invisible or not. these are handled with bitflags:

Code: Select all

#define STATES 20
#define INVISIBLE (1 << 6)
not sure where these states are stored with the player though
Useful tool links:

DarkStar88
ultra-n00b
Posts: 4
Joined: Tue Feb 15, 2011 5:32 pm

Re: Iter Vehemens Ad Necem

Post by DarkStar88 » Thu Mar 03, 2011 2:43 am

The dungeons themselves aren't that big, going by roguelike standards, but it probably seems that way due to how IVAN reads/writes the files.

Do states handle other attributes, such as teleporting or polymorphing?

Post Reply