#Nox-Decomp (Nox from Westwood port)
1 messages Ā· Page 2 of 1
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
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
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
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
yeah I should probably have a look at overriding that
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...
most likely
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
there is only a 32bit version of nox for now - making a 64bit version requires a few thousand changes
thats a bit strange
are you using the beta version from above or directly from port master?
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
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
Let me know if you sort it out
This line would normally take care of it though
https://github.com/sookyboo/nox-decomp/blob/main/dist-scripts/portmasterstart.sh#L30
I think something else is going on - don't think you would get a segfault error if it was architecture based
Did you build from source? If you did you need to cross compile it for 32bit
No I didn't, at least not for the port, the OS is cross architecture though at least according to the dev that compiled it @kind compass with their fork. I can try to build the port from source though
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
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?
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
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?
Likely what I'm guessing
Just as an aside, when you @ me in a message it buzzes my phone any time of the day and wakes me up if I'm sleeping
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
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
Yeah will be built by GitHub actions soon that one was made on my Mac
The one on port master also doesnāt work
But works on most other OSes
Yeah, your github actions setup in your repo is really slick
Sorry for all the noob questions, what's the story for the 3d in this game, are you using OpenGL or some shim library like gl4es or native gles?
OpenGL via sdl
also have you tested dArkOS on any other rk3566 systems like the rg353v/p/m
but this is a gl4es that's been compiled as armfh?
yeah, I reproduced the segfault, just getting my gdb setup going for armfh lemme see
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?
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
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
I think bmdhacks is having a look
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.
Also other people have reported it working on darkos
#1458158676836876532 message
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.
Another darkos that it was working on #1458158676836876532 message
yeah, that's a different processor architecture, no worries I'll keep fiddling.
looks like a fun game I'm eager to actually play it š
Itās an excellent game love it
Spent months working through all the 32bit arm issues to make it work
It is a fun game bmdhacks not as great as Diablo 2: LOD but very fun in it's own unique way
Personally I prefer it to Diablo š
I'm a diablo fanboy would love to figure out how to point D2 at some point
since they made it work with D2R
I love the summoning/charming creatures and the line of sight mechanic
Also multiplayer with skilled players is very intense
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
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
I have to paly it again first it's been far too long since I played
Thereās a link to their discord in the thank you section here
If you do play in their multiplayer games - youāll probably need a mouse
https://github.com/sookyboo/nox-decomp?tab=readme-ov-file#thanks
I'm rolling a new OS release with a specific armfh fix for this game.
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:
- the original odroid SDL screen rotation patch applied in the build scripts but not cleanly and it inserted some framebuffer setup code too early.
- 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.
- something about the way nox-decomp uses SDL is slightly different than the n64 emulator.
no probs - no rush - I don't have one of these devices just curious
@jade temple did you ever finish your run through of Nox? š
Nope
Got repetive real fast ^^
Watched the rest with a video
waiting for the newer version to be up on PM before i really delve into playing this one
Hey I'm getting this error now, just curious if you've seen this before. Otherwise I can keep digging:
Not seen thisā¦
no worries I can fiddle
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
Iāve not had a chance to test any of the action builds yet
Canāt have a look now but maybe compare to the last problem log someone posted to see the differences
Is it mainly just stuff to fix for 1g devices? Cause I'll be playing on my odin2 portal. Will that matter?
Next changes will probably for making multiplayer support more robust, donāt anticipate any changes to single player or graphics
Download the latest portmaster-main in the GitHub actions, I havenāt tested if it works yet but the armhf exe is the important part
I think the libs folders might have some duplicates I need to clean up etc from the automated build
Unofficial stable Nox (2000) source port to Linux, PortMaster, SteamDeck and Windows - Workflow runs Ā· sookyboo/nox-decomp
@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?
It also has its own internal gptokeyb2 in gamepad.c
Give it a try
I tried a few things but having played it when I was young the relative felt most natural to me
I also added a radial limit so that if you pass through the centre while running it locks the mouse in a radius around the centre
I even considered making an input style selection prompt before launching the game and loading a different gptokeyb2 ini file
Something like zenity but for portmaster
Probably possible to control the character directly with one of the sticks if I dig and find where the deltas are changed
Also fixed the word selection feature in gptokeyb2 so that you can enter cheats- not sure if that build has been included in port master yet
Yeah⦠I couldnāt finish the later levels with absolute style
But have a play and see how it goes for you
I might just be an alien š½
well, the dpad is still relative, so you pick the style that works best
I couldnāt play with dpad
ah
Dpad annoys the crap out of me for mouse š
eh, this is your game so you get to do it how you want
Tell you what make a pull request and Iāll add your gptokeyb2 file
And people can choose
By editing the .sh file
meh, nobody's gonna do that
Some people asked for it
It's cool... this is all your call, do it the way you want
oh ok.. sure I'll send it to you
@obsidian isle
@kind compass Can you add it to the Nintendo one too thatās the one that gets packaged with portmaster
Thanks for contributing btw
done! Thank you for contributing too!
It was a good test harness for my armfh OpenGL stack. Fixed a bunch of issues.
weirdly absolute mouse doesn't work on my rg40xx h
maybe I need to update portmaster?
which OS are you running?
only a very recent gptokeyb fixed it in muOS
yeah - I had to build my own gptokeyb2 to make it work in my experiments and muos goose
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)
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
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!
rg52-mini is cheaper than rg40xx š
Huh not over here - looks like a nice device š
Oh, heh, I'm in USA... where's "here" for you?
oh I guess the rg40xx-v is cheaper here too
Wow thats a game changer! A possibility to really play full game on handheld
To port a diablo 2 like that would be dream come true
Check out Nox and DevolutionX
it's been ported to a lot of things
https://github.com/diasurgical/devilutionx/releases/tag/1.5.5
not diablo 2 though, that's diablo 1
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
Oh. Is this version on PM?
Added 2-14 uodated 2-21?
Or ahouks I be waiting til portmaster page updates again for the latest version?
it was fixed 10 days ago
Oh so gotta wait then
the latest versions are here. i don't know anything about portmaster https://github.com/sookyboo/nox-decomp/actions/runs/23322588793
there is a portmaster zip in this list
however, the launcher might still try to convert the audio. i'm not sure.
launcher doesn't convert audio - commented the function call out, but kept the converter code in case someone needs it, will remove it in a future version
Yeah thats a very big difference
Iām not porting Diablo 2 any year soon š
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
If Diablo 2 were ported, it would probably gain worldwide fame..^^
@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
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
Yeah Iām mostly on Mac or Linux over here too
gptokeyb2 has a thing where it emits last coordinate +- 1 so that the kernel thinks the mouse always moved.
Yeah Iāve seen that
Hmmm
Freaking windows so much extra stuff I need to do to support it
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.
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
NT4
Os/2
That was a bit before my time
In my time we were lucky to have 4 colours on screens
Now these windows machines and their 4ks
Try Win 10 ltsc iot version, it works great and almost everything useless is removed by microsoft itself
I have offline account on it also
thanks for suggestion - my windows days are pretty rare
I think in the last 10 years
I've tested nox-decomp
I like using it due to portable apps etc
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
Yeah its made for Atm machines etc mostly, but works great for gaming too
if when I open a terminal its not bash/zsh (and I know WSL2 exists) I don't feel at home
feels like that
This one I am talking about https://archive.org/details/en-us_windows_10_iot_enterprise_ltsc_2021_x64_dvd_257ad90f_202301
is there a win11 version of that too?
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
I noticed the gane still wasn't updated with today's port releases from the github to the website
yeah I am still trying to fix things sorry
hey what if I added a hotkey to enable absolute mouse?
so you could toggle it back and forth... not exactly the most usable thing, but powerful
If you can find a hot key š
Iāve used pretty much everything already
hey can you explain that radial patch you added? is it to fix the radius of the abosolute mouse and just take a direction?
and then there's a key input part of it for like a pie menu?
Radial limit?
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
Oic
Iāve tested the latest build in my repo and it works if youāre eager to play
The portmaster-main.zip on this page
https://github.com/sookyboo/nox-decomp/actions/runs/23454148582
I'm fine to wait til it drops. Evoland has my attention right now anywayd hahs
Still working through some networking stuff and looking at new controller modes
is it possible in gptokeyb2 ini language to toggle between absolute mouse?
I found a candidate set of keys to change (the gamma ones don't work)
I'd like to follow the gptokeyb2 syntax if its possible to toggle rather than inventing my own
do you just not clear it?
I think you just swap in an overlay
I can provide an example when I get out of bed
sorry for disrupting your sleep
Naw im awake. Too excited about my mac loader to sleep
I know the feeling
@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?
I guess can be done with set_state
@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
Ok, so I just update it in portmaster. Will test and report
@obsidian isle you may need to log in to github to download
cool ta
Hmm so to see the download button in this link I need to log in? On releases section there is older ver
https://github.com/sookyboo/nox-decomp/actions/runs/23511781199
Yes needs login
In portmaster itself also old ver
Yes portmaster has an old version - will update it when we confirm enough devices are happy with the new controls
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```
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?
This is on the RGB30. I got dArkOS from the github repo for it
Is bind_directories something that comes with Portmaster?
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
if you got it from here that's weird, but this is an OS issue more than a nox issue https://github.com/christianhaitian/dArkOS/releases
Was this a new addition to this version? I was able to run the prior release
bind_directories has been around since before i heard of portmaster
But was it used in the previous versions of the port?
the repo has bind_directories for nox from last month too
I just installed VVVVVV and it runs
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
I just dropped the sh from an older release in and it started
I have recently removed gptokeyb2...
maybe that caused it
just released a new version like an hour ago
https://github.com/sookyboo/nox-decomp/releases/tag/v0.9.3-rc1
let me test it on my device
@abstract skiff version above seems to work on mine - could you send your log.txt file
did you maybe download the linux-armhf version rather than the portmaster version?
this is the best file to download at the moment
https://github.com/sookyboo/nox-decomp/releases/download/v0.9.3-rc1/portmaster-v0.9.3-rc1.zip
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
port master is linux š
just missing a few utils and shell scripts
same binary
this is the first run - how did we fix it the last time?
I was messing with the resolution settings in the script and the configs
@half sable and I removed the resolution settings screen to prevent this š but its still happening
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
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
I'm not seeing 'export' lines. Did you mean the 'declare' lines?
@abstract skiff can you try replace your .sh file with this for me pls
https://gist.github.com/sookyboo/061e02bd4b0fbdc7f74689608be1e028
Game launches. No edge artifacts
cool I'll commit that then
done - all future versions should be fine now
if you have a github account you can download the build from here in like 40 min but it will be identical to what you have now
https://github.com/sookyboo/nox-decomp/actions/runs/23669835300
@tall rock did you have the same problem and it is fixed now - only fixed for RGB30?
bmdhacks the changes you made to the RG52 mini OS is now allowing this game to run
When is this gonna be prd to PM?
Iād like a few more people to test the latest release candidate and report back that it works because Iāve completely changed the way input works but Iāve been busy
Yup the radial thing feels much better to control!
35xxH/MuOS
Have you tried the other modes
START + L1 for mouse mode or START + R1 for absolute mode or START + R1 + R2 for absolute mode with inverted run button
Not yet just used the default
Canāt seem to toggle on MuOS
using the latest release candidate on github?
sha256:5027bc049af21011df11a7e669f64c41b9cba697be792a4a34921ec0a99296ec
sha of the zip should be sha256:7ff0c03be470afb679382575d81daa73c79301842102097e3b9632317152ec2a
yupyup that is right
yeah
it lets you use the left thumbstick to directly control chatacter
in particular start + r1 + r2 is the most noticable difference
yea it works now
i don't really notice too much between START + L1 for mouse mode or START + R1 for absolute mode
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
haha yea feels more old school
Exactly! Feels like the original game
although takes getting used too compared to the M+KB
Yep
I've raised a PR
nox is on sale on gog for $1.39 for 10 hours if anyone is interested
@sharp path @scarlet osprey
raised a PR for the nox-decomp update
seems to run everywhere
if there are issues with controls on specific devices can fix as people report problems but so far all devices that have been tried seem to be working as expected so I don't really see any reason to delay merging longer
Excited for you to play it in its entirety too š
nice PR! Just commented one change thats needed!
Thanks @sharp path
Good work on animal crossing btw Iāll try it at some point
Game already exits with start + select
No problemo! I also replied with my concerns, I can and cant suggest playing Animal Crossing currently, still needs a lot of bug fixes
No probs no rush from me I can wait
Replied let me know
@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
@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
@west linden should be available now!
Not yet!
Oh yea it is now!
Ah yeah sorry forgot that someone needs to make a release
Nice