another one IVAN fork

Nov 2, 6:20 am
Joined: Sep 5, 2010
Posts: 103
added windoze build for those who want to try it out. it at leasts starts with wine, but i don't know if it really works.


p.s.: slightly updated.
Nov 2, 12:42 pm
Joined: Sep 5, 2010
Posts: 103
and another bugfix. new post, 'cause somebody may already downloaded old buggy version.
Nov 4, 2:18 am
Joined: Sep 5, 2010
Posts: 103
small update:
• fixed crash with ctrl+arrows in wilderness (in dungeon, ctrl+arrow will invoke 'g'o command).
• OpenGL renderer is mandatory now; also, use power-of-two texture, so older intel videocard emulators will work too.
Nov 4, 5:28 am
Joined: Sep 5, 2010
Posts: 103
fixed siren AI bug: siren never notices that her song was unsuccessfull, so she never proceed to humanoid AI. basically, siren will stand still if there is any character in adjacent square. the bug is present in comm. fork too. this not only blocks spawned sirens movement, but will cause elven ambassador to block Attnam's temple entry forever, if she'll manage to get into it.
Nov 5, 4:07 am
Joined: Sep 5, 2010
Posts: 103
refactored earthquake code into reusable method. falling bricks will kill immobile creatures now, regardless of their HP (so earthquake will kill Jenny, for example, 'cause she has no room to escape falling bricks).
Nov 5, 12:34 pm
Joined: Sep 5, 2010
Posts: 103
slowly rewriting save/load code. the game will use textual entity names, and textual config names, so it will be possible to change scripts without invalidating saves. in the faaaaar future i may switch to human-readable textual saves (if everything will work as expected).
Nov 5, 11:18 pm
Joined: Sep 8, 2010
Occupation: Petty Functionary
Location: Drinking pea soup in the world map
Interests: Mangoes
Posts: 935
That will actually be really useful, incrementing the save file number is really clunky.
Any idea if you can get rid of the bonefile number?
Nov 5, 11:27 pm
capristo's avatar
The Imperialist


Joined: Dec 2, 2007
Location: New Attnam
Interests: bananas
Posts: 1,962
Wouldn't human readable saves also be human writeable, aka easy to manipulate and cheat?
Nov 6, 3:51 am
Joined: Sep 5, 2010
Posts: 103
2fejoa: as bones basically just level saves, they should benefit too. tbh, i mostly thought about bones when i started working on this: it is too painful to loose 'em all each time i bumping version number (and it happens quite often in k8ivan). and yes, i can get rid of level ids encoded in bone file name too: it's not hard to scan bone headers and extract all the info game need.

2capristo: ah, it is already possible to cheat with programs like CheatEngine, and even easier: by just changing values in script/ (see ut script in k8ivan: it spawns alot of impossible shit near the entrance if player name is '_k8_'). security by obscurity never really worked. and, tbh, i see no reason to stop cheaters: if people want to ruin their pleasure, why should we stop 'em? it is their decision, after all.

on the other side, textual saves will allow not only cheating, but human inspecting of a save in the case of some problems. analyzing save files is almost impossible now (due to how saves are implemented). as a developer, i must confess that i never even thought about writing "save file analysis tool" due to it's complexity. textual saves rox for devs.

and, btw, we can just encrypt saves with some simple algo, so lazy people won't just edit 'em with their text editor. or write something like a checksum (as for highscores), so modified saves will be rejected.

anyway, text saves won't come in a day or two (even my developement speed is not that high %-). first i have to add names for all saved values, and sections for objects. which require wrapping all binary i/o in ugly macros (sigh) and lambdas.

as for now, i catched one bug with wrong type i/o, harmless for x86, but disasterous (i think) for x86_64. not that k8ivan works for x86_64 at all, tho: i don't have x86_64 system to test it on, so i simply disabled 64-bit builds with `static_assert()`. %-)
Nov 7, 8:22 am
Joined: Sep 5, 2010
Posts: 103
small update: fixed bug in 'g'o (it should not skip items in corners anymore); fixed ancient bug in object pool (the game should not crash due to "pool desync" if it detected broken save anymore); various small improvements.
Nov 15, 9:18 pm
Joined: Sep 5, 2010
Posts: 103
on hiatus again. irl funding problems, lol. prolly be back in next seven years.
Jump to