JoeQuake icon indicating copy to clipboard operation
JoeQuake copied to clipboard

vm error when trying to play nehahra

Open revelator opened this issue 2 years ago • 16 comments

Just in case you decide to look at it again :) getting an pf_ function error when trying to play nehara, strangely the demos work.

revelator avatar Nov 27 '22 20:11 revelator

Looks like this error only happens when loading neh1m1, but i never really tested the whole mod.

joequake000

Flecked42 avatar Dec 01 '22 04:12 Flecked42

aye seems only the first map is affected, tracing it leads to PR_findstring via one of the edict macros not been able to trace it further as im not home atm. Might just be a small glitch i reckon, i changed the Host_Error call to a Con_DPrintf call for the time being and it plays the rest with no problems.

revelator avatar Dec 06 '22 15:12 revelator

Started checking this a few days ago. I've merged the code from QuakeSpasm more than 2 years ago which reads data from the progs.dat in a more optimal way in terms of memory management of strings. But seems like it does something in a wrong way in case of the nehahra progs. Gonna continue investigating it later as I'm busy with another project currently.

j0zzz avatar Dec 06 '22 15:12 j0zzz

well nehahra was actually built before any of the quake code was public and the qc code was compiled using a hacked together qc compiler with some oddities :) i actually think the first qc compiler able to handle the odd format was spikes ?.

revelator avatar Dec 06 '22 15:12 revelator

well besides the tools they built themself that is ;).

revelator avatar Dec 06 '22 15:12 revelator

yep found the post on func_msgboard the old nehahra qc compiler was done in pascal and called reacc. https://celephais.net/board/view_thread.php?id=38650&start=396&end=408

revelator avatar Dec 06 '22 15:12 revelator

Nehahra compatibility seems to be a lost cause, I don't think any modern engines actually support it.

Flecked42 avatar Dec 07 '22 01:12 Flecked42

playable with spikes FTEqw engine darkplaces also supports it a few quirks with both but nothing major :)

revelator avatar Dec 07 '22 02:12 revelator

FTEqw has a bit of a problem with the seal of nehahra demos (stuttering and some effects like fog are missing) other than that it plays quite well with it. darkplaces was probably one of the first engines out there that was able to play it with all effects on, modern effects like bumpmapping and rtlights tend to mess it up a bit but if you play without these on it works quite well.

revelator avatar Dec 07 '22 09:12 revelator

Yeah well I have the original source code of it (QC and EXE) from long ago when I added support for it into JoeQuake. Everything is supported, it's this particular QuakeC issue that causes the problem right now.

j0zzz avatar Dec 07 '22 10:12 j0zzz

indeed :) i have a hunch it might be a minor problem though.

revelator avatar Dec 07 '22 11:12 revelator

hmm anoher one cropped up which i did not notice before, you cannot save your game in nehahra "error could not open"

revelator avatar Dec 07 '22 11:12 revelator

That's strange, game saves fine for me.

Are you using the Nehahra from here https://www.quaddicted.com/reviews/nehahra.html ?

Flecked42 avatar Dec 07 '22 17:12 Flecked42

aye thats the one, maybe some permission problem ? ill try running it as admin when i get home.

revelator avatar Dec 08 '22 08:12 revelator

ok tried as admin but no dice, the save path is wrong it seems it tries to save to C:\quake\-nehara\sav0.so Oo which is a rather strange format as .so is a unix shared object format normally lol. not sure why it prefixes the nehahra folder with a - either.

revelator avatar Dec 31 '22 13:12 revelator

ah wait a sec, quakespasm yeah i thought i seen this code somewhere :) quakespasm has problems with nehahra, it can play some maps but there are some bugs with it i heard.

revelator avatar Jan 11 '23 15:01 revelator