#Nox-Decomp (Nox from Westwood port)

1 messages Ā· Page 2 of 1

abstract skiff
#

Not really, no

#

It's just blurrier with the linear scaling

#

Or distorted without

#

It's just a game meant for large, lower-resolution screens. Not for a 3.5" or whatever these little handhelds have

#

(Age and historically bad eyesight are not helping me here either)

#

Thanks for figuring this out with me

main bobcat
#

no probs

#

if you think I should change the default for that device let me know

abstract skiff
#

The problem I had initially was that it didn't start in 720x720. It started in a 4:3 aspect

#

Something in the nox.cfg, I assume

main bobcat
#

yeah possibly

#

in the generic linux launcher I replaced that bit...

#

I'll double check the .sh file and send you an updated one at some point to test from scratch if thats ok

abstract skiff
#

Yeah, that's fine

#

Actually, I just did a fresh install and it started in 720x720. I think I messed with the settings before playing the game and that changed the resolution the first time

#

I just assumed the resolutions in the settings were what the game was going to run at

main bobcat
#

at the very least I should mention it in the readme

#

my device is 640x480 so didn't notice these problems

#

@half sable maybe we should disable setting the resolution too - if NOX_GAME_WIDTH/NOX_GAME_HEIGHT is set...

half sable
#

most likely

inland nacelle
#

I'm having trouble running this on the RG52 mini running dARKOS fork for the RG52 mini. The OS has both aarch64 and aaarch32 support but uname -m only shows aarch64. there wasn't any folders for aarch64 and I'm not sure if this is what is causing the issue

main bobcat
#

looks like you're running the version from portmaster - try the beta version posted above and let me know if you get the same thing

#

link to the beta version
#1458158676836876532 message

inland nacelle
#

I was using the version from portmaster website

#

I'll try the above though

#

Okay running the beta build didn't fix it. I'll look at removing the logic to have it search for the architecture and set it to just armhf. I think the script is just getting confused since the system is aarch64 but has the foreign arch for aarch32

main bobcat
#

Let me know if you sort it out

main bobcat
#

I think something else is going on - don't think you would get a segfault error if it was architecture based

main bobcat
inland nacelle
inland nacelle
#

Just me trying to make sure I'm giving the correct information for support on Nox-decomp which doesn't have a aarch64 build but aarch32 with armhf support

kind compass
#

Yeah, my OS build has armfh drivers, the n64 emulator uses them. But perhaps there's a broader dArkOS compatibility issue. I am not familiar with this game/port what's it's backend?

inland nacelle
#

trying to figure out how to make it run with the currecnt script as I believe the RG52 mini should support an armhf build but I think the script is not defualting to armhf as the foreign architecture for this port and trying and failing to run it it

#

I'm not sure either as it's the first time I'm using this and port master normally I just use wine to run this kind of thing

kind compass
#

Ok, just bought the game lemme test

#

So it's a decompilation of a 32bit windows game, and so building for armfh is more straightfoward to preserve 32-bit pointer arithmetic, is that right?

kind compass
inland nacelle
#

okay I won't at you then I don't want to wake you up

#

sorry for that

#

mine buzzes too but I sleep through just about anything

kind compass
# main bobcat Yes

Just a heads-up you have some extra stuff in your beta zip:

āÆ unzip -l ~/Downloads/portmaster-nox-decomp-beta.zip
Archive:  /home/bmd/Downloads/portmaster-nox-decomp-beta.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
    12780  03-11-2026 22:00   Nox-Decomp.sh
      176  01-01-1980 00:00   __MACOSX/._Nox-Decomp.sh
      120  01-01-1980 00:00   __MACOSX/nox-decomp/._nox-decomp.md
      163  01-01-1980 00:00   __MACOSX/nox-decomp/._noxd.armhf
      163  01-01-1980 00:00   __MACOSX/nox-decomp/._noxd.i386
main bobcat
main bobcat
#

But works on most other OSes

kind compass
kind compass
main bobcat
#

OpenGL via sdl

kind compass
#

also have you tested dArkOS on any other rk3566 systems like the rg353v/p/m

kind compass
#

We don't have desktop GL

main bobcat
#

On port master gl4es

#

For arm

kind compass
#

but this is a gl4es that's been compiled as armfh?

main bobcat
#

Ummm should be armhf

#

If you can run it with gdb what does the back trace say

kind compass
#

yeah, I reproduced the segfault, just getting my gdb setup going for armfh lemme see

inland nacelle
#

Sookyboo with the Nox-Decomp.sh file. I'm not understanding the logic in this section

#

1) Default: run arch follows device arch

RUN_ARCH="${DEVICE_ARCH}"

2) Remap device arch -> desired run arch

case "${RUN_ARCH}" in
aarch64|arm64|armv8*)
RUN_ARCH="armhf"
;;
armhf|armv7*|arm)
RUN_ARCH="armhf"
;;
amd64|x86_64)
RUN_ARCH="i386"
;;
x86|i686|i386)
RUN_ARCH="i386"
;;
esac

#

my understanding is it's not asking me to select the architecture and just running the default arch which in my case is armv8/ aarch64 with the second option is asking th euse to input the arch they want to use is this correct?

main bobcat
#

If the device architecture is 64bit turn it into the 32bit equivalent for arm and intel

#

Keep in mind this is already running for many many devices

#

So it is likely something different with darkos

inland nacelle
#

Okay just want ot make sure I was reading the script correctly. I do understand what you are saying I'm just not understanding how that script is doing that is all but that's okay. I'm not really at this level of scripting and programming myself

main bobcat
#

I think bmdhacks is having a look

kind compass
#

The launch script is fine, it's invoking the 32-bit stuff and linking to the correct libraries. The segfault is in SDL_Init. It's probably something I'm doing wrong in my build, this device has a rotated screen so I'm building a fancy SDL that rotates the screen. The good news is that running with a dummy driver sets up gles OK so it's not some terrible libmali bug.

main bobcat
#

Also other people have reported it working on darkos

#1458158676836876532 message

kind compass
#

Well, this would be dArkOS for rk3566 systems since the build is slightly different for this processor architecture.

#

but I have a dArkOS rg353v I can test to see...

#

I'm guessing it has to do with both the armfh SDL with my rotation patches, but yeah this looks like an OS bug, not your problem.

main bobcat
#

Another darkos that it was working on #1458158676836876532 message

kind compass
#

yeah, that's a different processor architecture, no worries I'll keep fiddling.

main bobcat
#

Cool

#

Good luck

kind compass
#

looks like a fun game I'm eager to actually play it 😁

main bobcat
#

It’s an excellent game love it

#

Spent months working through all the 32bit arm issues to make it work

inland nacelle
#

It is a fun game bmdhacks not as great as Diablo 2: LOD but very fun in it's own unique way

main bobcat
#

Personally I prefer it to Diablo šŸ˜„

inland nacelle
#

I'm a diablo fanboy would love to figure out how to point D2 at some point

#

since they made it work with D2R

main bobcat
#

I love the summoning/charming creatures and the line of sight mechanic

#

Also multiplayer with skilled players is very intense

inland nacelle
#

It for sure is a game that can stand on it's own. I never did pvp but did beat it with all the classes back in the day

main bobcat
#

The nox rpg discord has multiplayer games scheduled every couple of weeks

#

I think I only last a minute or so with those guys if you want to test your skills

inland nacelle
#

I have to paly it again first it's been far too long since I played

main bobcat
kind compass
main bobcat
kind compass
# main bobcat curious to see the change - if there is a git commit at some point

Yeah when I get to a computer I'll share. Basically it was a triple combination of three issues:

  1. the original odroid SDL screen rotation patch applied in the build scripts but not cleanly and it inserted some framebuffer setup code too early.
  2. the dArkOS build dynamically links librga1 but only on armfh so those symbols were not statically linked and missing when the patch called on them before they were loaded.
  3. something about the way nox-decomp uses SDL is slightly different than the n64 emulator.
main bobcat
#

@jade temple did you ever finish your run through of Nox? šŸ˜„

jade temple
#

Got repetive real fast ^^

#

Watched the rest with a video

main bobcat
#

Hehe

#

I’m tempted to do that with some games too

west linden
#

waiting for the newer version to be up on PM before i really delve into playing this one

kind compass
kind compass
#

no worries I can fiddle

main bobcat
# west linden waiting for the newer version to be up on PM before i really delve into playing ...

Will try post it soon - been travelling for work a bit so more busy than usual - @half sable and I removed some of the graphics settings that get people in trouble and I’m planning to add an env var to allow people to directly connect to a server IP in case the lobby server is down, I’ve also set up a build pipeline so you can download the latest build after every commit in the actions tab in GitHub

Hopefully will get to it tomorrow

main bobcat
main bobcat
west linden
main bobcat
main bobcat
kind compass
#

@main bobcat this would really benefit from absolute mouse mode in gptokeyb2

#

oh fuck yeah you're already using gptokeyb2 this is gonna be easy

#

How about dpad is relative mouse and analog stick is absolute mouse?

main bobcat
main bobcat
main bobcat
main bobcat
main bobcat
kind compass
main bobcat
#

But have a play and see how it goes for you

#

I might just be an alien šŸ‘½

kind compass
#

well, the dpad is still relative, so you pick the style that works best

main bobcat
#

I couldn’t play with dpad

kind compass
#

ah

main bobcat
#

Dpad annoys the crap out of me for mouse šŸ˜„

kind compass
#

eh, this is your game so you get to do it how you want

main bobcat
#

Tell you what make a pull request and I’ll add your gptokeyb2 file

#

And people can choose

#

By editing the .sh file

kind compass
#

meh, nobody's gonna do that

main bobcat
#

Some people asked for it

kind compass
#

It's cool... this is all your call, do it the way you want

#

oh ok.. sure I'll send it to you

main bobcat
kind compass
main bobcat
#

@kind compass Can you add it to the Nintendo one too that’s the one that gets packaged with portmaster

#

Thanks for contributing btw

kind compass
#

done! Thank you for contributing too!

#

It was a good test harness for my armfh OpenGL stack. Fixed a bunch of issues.

main bobcat
kind compass
#

only a very recent gptokeyb fixed it in muOS

main bobcat
#

yep updated and seems to work now

#

not behaving predictably though

#

the centre point seems to shift (which is similar to the problems I was having)

kind compass
#

yeah, that's just sorta how the analog sticks report unfortunately

#

their response time is low, like 60hz so if they snap into the deadzone quickly the last report is fairly deflected

#

but the idea of absolute mouse is that it's more directional than precise, so if you're running around you can at least change direction quickly, or if you're a warrior you can swing your weapon in the right direction

main bobcat
#

I've merged it

#

but yeah maybe more expensive devices work better

#

my rg40xx struggles

#

thanks again! and thanks for putting the effort to debug your opengl stack!

kind compass
#

rg52-mini is cheaper than rg40xx šŸ™‚

main bobcat
kind compass
#

Oh, heh, I'm in USA... where's "here" for you?

#

oh I guess the rg40xx-v is cheaper here too

main bobcat
#

UK

#

Of course these devices might be worth millions soon with the shortages

obsidian isle
fading grove
#

To port a diablo 2 like that would be dream come true

agile vector
half sable
#

not diablo 2 though, that's diablo 1

west linden
#

Been stuck on this for an hour

half sable
#

that step was removed in recent versions, audio conversion is unnecessary after a fix

#

or maybe it wasn't actually removed from the launcher script. but it's not necessary anymore

west linden
#

Added 2-14 uodated 2-21?

#

Or ahouks I be waiting til portmaster page updates again for the latest version?

half sable
#

it was fixed 10 days ago

west linden
#

Oh so gotta wait then

half sable
#

there is a portmaster zip in this list

#

however, the launcher might still try to convert the audio. i'm not sure.

west linden
#

I see. I'll just wait a few days

#

It's allll good. Thanks!

main bobcat
fading grove
main bobcat
main bobcat
#

update on why the release is taking longer
so the lobby server that we use for nox-decomp multiplayer went down the other day and we don't know who runs it
so I am working on a version that will run for free hopefully on cloudflare (it is done but haven't had time to test it)
I've also added support for a different kind of lobby server that someone runs called xwis
I am planning on adding a file in the repo with a list of servers to try when a lobby server isn't found

#

I've removed the duplicate ffmpeg lib files in the portmaster-main builds

visual epoch
#

If Diablo 2 were ported, it would probably gain worldwide fame..^^

main bobcat
#

@kind compass by any chance do you know why the windows version of nox-decomp sdl2 seems to ignore small mouse movements on 4k hidpi displays

There are sdl2 issues with similar stuff not sure it’s actually solved thought maybe you’ve heard about this before

#

Nox-decomp uses relative mode

#

Sdl 3 may have more hidpi mouse support

kind compass
#

No I don't own any hidpi devices I'm 1440p over here 😁

#

I know of issues with absolute mouse where the driver only emits x or y cords on small movements and the kernel then thinks the other coord is 0

main bobcat
#

Yeah I’m mostly on Mac or Linux over here too

kind compass
#

gptokeyb2 has a thing where it emits last coordinate +- 1 so that the kernel thinks the mouse always moved.

main bobcat
#

Yeah I’ve seen that

#

Hmmm

#

Freaking windows so much extra stuff I need to do to support it

kind compass
#

Yeah ive never used windows. I tried once back in like 1998 but I gave up when I realized I was just sshing into my linux devices to do any work.

main bobcat
#

Yeah I can’t more than a couple of hours of windows these days myself

#

Doesn’t feel like I own the device

#

My computer and my documents

Feels more like someone’s computer and someone’s documents

#

Oh wait that was windows 98

kind compass
#

NT4

main bobcat
#

Os/2

kind compass
#

That was a bit before my time

main bobcat
#

In my time we were lucky to have 4 colours on screens

#

Now these windows machines and their 4ks

obsidian isle
#

I have offline account on it also

main bobcat
#

thanks for suggestion - my windows days are pretty rare

#

I think in the last 10 years

#

I've tested nox-decomp

obsidian isle
#

I like using it due to portable apps etc

main bobcat
#

and played horizon zero dawn because it wasn't working on my steam deck

#

can't really remember another time I've used my old windows laptop

#

but good to know there is a lighter windows out there

obsidian isle
main bobcat
#

if when I open a terminal its not bash/zsh (and I know WSL2 exists) I don't feel at home

#

feels like that

obsidian isle
main bobcat
#

is there a win11 version of that too?

obsidian isle
#

Yeah but I prefer staying on Win10

#

All new games and drivers work flawlessly

#

Btw I guess Titan quest would work great too in portmaster but there is only android port, no opensource

west linden
#

I noticed the gane still wasn't updated with today's port releases from the github to the website

main bobcat
kind compass
#

so you could toggle it back and forth... not exactly the most usable thing, but powerful

main bobcat
kind compass
#

and then there's a key input part of it for like a pie menu?

main bobcat
#

Radial limit?

kind compass
main bobcat
#

I was trying to figure out why absolute mode was broken by implementing my own

#

Never managed to make it work

#

Always had inconsistency of the centre point

#

I’ve been working on sending the direction directly to the player’s character in the game independently of the mouse

#

I’ve managed to control the direction

#

But the speed is still controlled by the distance of the mouse to the player

#

But I’m close to figuring out where that happens in the disassembly

#

I’ll send you a link to the commit in a couple of days

west linden
main bobcat
# west linden Oic

I’ve tested the latest build in my repo and it works if you’re eager to play

west linden
#

I'm fine to wait til it drops. Evoland has my attention right now anywayd hahs

main bobcat
#

Still working through some networking stuff and looking at new controller modes

main bobcat
kind compass
#

I can provide an example when I get out of bed

main bobcat
kind compass
#

Naw im awake. Too excited about my mac loader to sleep

main bobcat
main bobcat
#

@kind compass I've figured out the in game absolute mouse behaviour
just need to add the toggle now

#

is there a game you know that does toggles?

main bobcat
#

I guess can be done with set_state

main bobcat
#

@kind compass @obsidian isle

I’ve added absolute mode

This is the latest build

I’ve not had a chance to test this exact version but should work

To activate absolute mode press start + R1 to go back to mouse mode start + L1

Download portmaster-main

This build stops using gptokeyb2 and uses the internal gamepad stuff 😬 bit worried about breaking controllers let’s see how devices do

https://github.com/sookyboo/nox-decomp/actions/runs/23511781199

GitHub

Unofficial stable Nox (2000) source port to Linux, PortMaster, SteamDeck and Windows - Play intro once on startup using launchers. Ā· sookyboo/nox-decomp@ed07deb

obsidian isle
main bobcat
#

@obsidian isle you may need to log in to github to download

obsidian isle
obsidian isle
#

In portmaster itself also old ver

main bobcat
abstract skiff
#

Getting a black screen and then exits to ES on the latest version using dArkOS. This is the output trying to run the script over ssh:

Nox data not extracted
Extracting Nox data...
Extraction may take up to 10-60min
Extraction failed```
jade saddle
#

it's weird that's a function of portmaster and works for me on dArkOS in general, does bind_directories work for you on a ready to run port like VVVVV? what device, and where did you get dArkOS?

abstract skiff
#

This is on the RGB30. I got dArkOS from the github repo for it

#

Is bind_directories something that comes with Portmaster?

jade saddle
#

yeah it's a problem with that os or the install of portmaster doesn't recognize it somehow and it's not sourcing the controlfolder functions properly

abstract skiff
#

Was this a new addition to this version? I was able to run the prior release

jade saddle
#

bind_directories has been around since before i heard of portmaster

abstract skiff
#

But was it used in the previous versions of the port?

jade saddle
#

the repo has bind_directories for nox from last month too

abstract skiff
#

I just installed VVVVVV and it runs

jade saddle
#

ok, then the sh somehow must be broken, you may be right, sorry that i hopped in here with general knowledge and awareness overall that the port worked, but there could be a regression with a fresh sh here afterall

abstract skiff
#

I just dropped the sh from an older release in and it started

main bobcat
#

maybe that caused it

#

let me test it on my device

#

@abstract skiff version above seems to work on mine - could you send your log.txt file

main bobcat
abstract skiff
#

I probably did. The fact that it ran at all is interesting, though

#

Yes, running the correct version does in-fact allow things to work correctly. I am now able to show the weird video wrapping I saw on the previous version

main bobcat
main bobcat
abstract skiff
#

I was messing with the resolution settings in the script and the configs

main bobcat
abstract skiff
#

I mean, the way I got it to stop last time was by messing with the resolution settings

#

Those settings at least stop it from changing to the wrong resolution

main bobcat
#

ah yeah - I think we set it to 640x640 for your device?

#

maybe I should add an exception specifically for your device

#

can you send me the export lines at the top of your log file

abstract skiff
#

I'm not seeing 'export' lines. Did you mean the 'declare' lines?

main bobcat
#

ah yes

#

those

abstract skiff
main bobcat
abstract skiff
#

Game launches. No edge artifacts

main bobcat
#

cool I'll commit that then

#

done - all future versions should be fine now

main bobcat
#

@tall rock did you have the same problem and it is fixed now - only fixed for RGB30?

inland nacelle
#

bmdhacks the changes you made to the RG52 mini OS is now allowing this game to run

west linden
main bobcat
undone ridge
#

Yup the radial thing feels much better to control!
35xxH/MuOS

main bobcat
undone ridge
undone ridge
undone ridge
#

sha256:5027bc049af21011df11a7e669f64c41b9cba697be792a4a34921ec0a99296ec

main bobcat
undone ridge
#

haha then i didn't use the latest

#

my bad

main bobcat
#

ah I think you're using

#

from the github actions?

undone ridge
#

yupyup that is right

main bobcat
#

yeah should be working

#

and I use muos too...

undone ridge
#

it can switch the mode within the game right?

#

i'm on a 35xxH

main bobcat
#

yeah

#

it lets you use the left thumbstick to directly control chatacter

#

in particular start + r1 + r2 is the most noticable difference

undone ridge
#

i don't really notice too much between START + L1 for mouse mode or START + R1 for absolute mode

main bobcat
#

Yeah l1 it still feels like a mouse so slower to do a 180 degree turn

#

R1 you can do a 180 immediately but still need to press the run button

#

R1 + R2 can do a 180 without pressing run

#

And run turns it back into a mouse

#

Personally I like L1 the most

undone ridge
main bobcat
undone ridge
main bobcat
main bobcat
#

nox is on sale on gog for $1.39 for 10 hours if anyone is interested

main bobcat
west linden
#

Awesome!

#

Excited to play this game in its entirety

main bobcat
sharp path
main bobcat
sharp path
main bobcat
main bobcat
#

@sharp path please have a look and let me know if you agree with comments or not

I’m away for most of the day

Have a nice day

main bobcat
#

@sharp path and @scarlet osprey thanks for merging the PR!

Worst case people complain if there are any issues and we fix it

Have a nice day

main bobcat
#

@west linden should be available now!

west linden
#

Oh yea it is now!

main bobcat
west linden
#

It's there!

main bobcat