Git Product home page Git Product logo

Comments (1)

AquariusPower avatar AquariusPower commented on September 14, 2024 1

I guess it could be a clash with dungeon index + deungeonLevel index when creating the filename.

See the dungeon indexes:

#define RANDOM 0
#define ELPURI_CAVE 1
#define ATTNAM 2
#define NEW_ATTNAM 3
#define UNDER_WATER_TUNNEL 4
#define EMPTY_AREA 5
#define XINROCH_TOMB 6
#define BLACK_MARKET 7
#define ASLONA_CASTLE 8
#define REBEL_CAMP 9
#define GOBLIN_FORT 10
#define FUNGAL_CAVE 11
#define PYRAMID 12
#define MONDEDR 13
#define IRINOX 14
#define DARK_FOREST 15

#define ELPURI_CAVE 1
GloomyCaves.dat, has 13 levels!

It will clash with:
#define GOBLIN_FORT 10
#define FUNGAL_CAVE 11
#define PYRAMID 12

Now some filenames will end with:
.111 # ELPURI_CAVE level 11
.111 # FUNGAL_CAVE level 1
!!!

A way to fix this would be to put some non numeric char between dungeon and level when creating the filenames, could be:
.1_11
.11_1

EDIT: it may be simple to patch:

./Main/Source/dungeon.cpp
void dungeon::SaveLevel(cfestring& SaveName, int Number, truth DeleteAfterwards)
{
  outputfile SaveFile(SaveName + '.' + Index + '_' + Number);

level* dungeon::LoadLevel(cfestring& SaveName, int Number)
{
  inputfile SaveFile(SaveName + '.' + Index + '_' + Number);

and do the same about bones files.

from ivan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.