Code Monkey home page Code Monkey logo

Comments (2)

supadupaplex avatar supadupaplex commented on May 27, 2024

Update. I found solution to some of mentioned problems.

  1. Crashes were not related to *.bs2's. They were caused by PC *.nod files.

  2. NPC's still stuck during scripted sequences. Maybe this is related to *.nod files too.

  3. I changed these lines in bs2pc_subdiv.c:

#define BS2PC_MAX_POLY_VERTS 1024
#define BS2PC_MAX_POLY_STRIPS 512

to these:

#define BS2PC_MAX_POLY_VERTS 2048
#define BS2PC_MAX_POLY_STRIPS 1024

This change allowed to complete ba_power2 map conversion.

  1. Checkerboarding problem was resolved with safer *.wad lump iteration in bs2pc_wad.c. I changed these lines:
while (low <= high) {
  mid = low + ((high - low) >> 1);
  difference = BS2PC_CompareTextureNames(lumps[mid].name, name);
  if (difference == 0) {
    lumpInfo = &lumps[mid];
    break;
  }
  if (difference > 0) {
    high = mid - 1;
  }
  else {
    low = mid + 1;
  }
}

to these:

for (int lmp = 0; lmp < wad->lumpCount; lmp++) {
  difference = BS2PC_CompareTextureNames(lumps[lmp].name, name);
  if (difference == 0) {
    lumpInfo = &lumps[lmp];
    break;
  }
}

Result:

2

1

3

from bs2pc.

supadupaplex avatar supadupaplex commented on May 27, 2024

Update. I found solution to *.nod files problem. Issues with NPC's behavior were indeed caused by improper/missing *.nod files and a message "Node graph out of date, rebuilding ..." was a lie.

from bs2pc.

Related Issues (2)

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.