Code Monkey home page Code Monkey logo

Comments (40)

brunoooh avatar brunoooh commented on July 18, 2024 1

Thank you so much !
I'll tell you what happen when I'll try.

I really would love it if you manage to recompile it, if I can provide any help please let me know : I'd be glad to help in anyway I can

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024 1

Well I'm not the right person to answer that question, so I've asked the one I mentioned earlier to join the conversation. Hopefully it will work out :)

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024 1

Oopsy, I had so many folders due to testing earlier versions, I moved the files from the zip to the wrong place and ran the new apk with the old files.
No more error message once the new files were put in the right place

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

Hi!

Last work on Android was 6 years ago. I guess new toolchain will not compile it. Also it doesn't have any touchscreen support - you need mouse+keyboard or gamepad to paly on Android.

Compiling it now with new toolchain will need rework, so it's not that easy.

I have somewhere old unsigned APK, but it doesn't work to me on new phone (looks like missing write permissions or...?).

best would be some day to port it to 64-bit, Vulkan, touchscreen and widescreen πŸ˜„

Edit:
I can upload this unsigned APK is you want, but you'll run it on your responsibility and I don't promise it'll work. On my phone with Android 13 it runs to menu, shows error about missing disk space and crash when loading race (Could not allocate track memory). I don't remember when it writes data on Android, but it looks like it can't write data in APK cache data or /sdcard.

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

hey, thanks for replying so quickly :)
Yes I'd like it if you could give me a link to your old APK I still have old android devices and I'd try it on them (with keyboard or gamepad if needed)

since I have been searching quite a lot about emulating NFS2SE on android, the problems you report remind me of two things : there's a patch that people use to run the game on wine and recent windows system to prevent it from refusing to launch after an error message claiming (wrongly) there's too little memory available. And of course it's been a few Android updates that writing files in the android folder is a problem for old apps... some apps relocate there files to another folder (I don't know if you can do that) other need to copy the file manually by connecting the android device to a windows computer through USB cable.

I hope this gives you some ideas, thanks again for replying and for your original work :)

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

Remove .zip suffix (GitHub doesn't allow me to upload .apk): NFSIISE-debug.apk.zip

Put all game data into /sdcard/NFSIISE or /storage/emulated/0/NFSIISE directory.

Maybe I'll recompile it and make it playable on new Androids (save data should be in writable places for APK).

Edit: It's called "debug", but IIRC it's just unsigned release build.

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

Hi, unfortunately my try failed : I get an error message saying "Probably crash !" and "Application closed with a signal 11"
Maybe that error code will tell you what I should do ?

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

Hmm, I don't know. Maybe I have to build a new APK πŸ˜„

Signal 11 is just crash (SIGSEGV).

What will happen i when you remove /sdcard/NFSIISE - do you have crash or message about missing data?

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

Hmm, I don't know. Maybe I have to build a new APK πŸ˜„

πŸ™πŸ™πŸ™

Signal 11 is just crash (SIGSEGV).

What will happen i when you remove /sdcard/NFSIISE - do you have crash or message about missing data?

The error message gets much simpler to understand if I do that : "can't find "gamedata" and/or "fedata" directories in current working directory !"

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

The error message gets much simpler to understand if I do that : "can't find "gamedata" and/or "fedata" directories in current working directory !"

Maybe it can see directories, but can't read files (no permissions). The last thing: Go to application information in Android and grant all permissions manually. Many devices allows to go to information by tap-and-hold and popup menu. If not, find applications in Android settings and find this app.

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

Maybe it can see directories, but can't read files (no permissions). The last thing: Go to application information in Android and grant all permissions manually. Many devices allows to go to information by tap-and-hold and popup menu. If not, find applications in Android settings and find this app.

I've just checked : the only permission was storage access and it was already on.

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

I've managed to compile with new toolchain and run this game on new phone with Android 13. I'll push changes when I finish it.

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

Whoohoo ! That's wonderful news !!

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

Could you try this: NFSIISE-debug-02.03.2024-18.40.apk.zip ?

From the updated README:

On Android devices, copy gamedata, fedata, install.win, text.*, nfs2se.conf.template into /sdcard/NFSIISE or /storage/emulated/0/NFSIISE (create NFSIISE directory first).

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

I got "cannot open configuration file "nfs2se.conf"

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

Do you have all required files in /sdcard/NFSIISE including nfs2se.conf.template, install.win, text.*?

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

Nope, I forgot to add them, I just put both folders from the original game, I'll try that in a few minutes

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

Ok, I've downloaded every file from the "Need For Speed II SE" folder on your github page and put them in the NFSIISE folder on my phone alongside the 2 folders from the original game... no more error message, but a black screen. Did I forgot some other files ?
Or maybe I should put them in a subfolder ?

Γ‰dit : since it works on your side, could you make a screenshots of thΓ© content of your NFSIISE folder ? That would help me make sure I've put everything in thΓ© right place

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

Used Termux
Command: find /sdcard/NFSIISE > /sdcard/files.txt

files.txt

Btw. Does it work on PC?

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

Er... I didn't understand your last message (sorry probably my poor english's fault), what did you mean about Termux ?

And are you asking me to try the game on Windows ?

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

I mean, I used Termux to generate file tree. Look at attached files.txt, you'll see file structure.

And are you asking me to try the game on Windows ?

Windows or Linux - maybe your data are incorrect?

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

ok, so I've got the same files, in the same place and unfortunately I get a black screen when launching the game

And yes the original game works on Windows (I used the same file in a dosbox pure emulator and the game plays just fine both 3dfx and DirectX versions)

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

And yes the original game works on Windows (I used the same file in a dosbox pure emulator and the game plays just fine both 3dfx and DirectX versions)

Could you download nfs2se-win32.zip from https://github.com/zaps166/NFSIISE/releases and check this on Windows?

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

works perfectly on windows, so I took the same files to the phone (in case my previous copy was corrupted) and still got black screen :(

not sure what it means, but after opening the game and getting the black screen, if the phone goes to sleep and I unlock it, it's still the black screen of course, but the virtual keyboard pops up

EDIT : just tested on my older phone, there it works like a charm

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

ok so I've got very good news : I've copied the files from my old phone (where the game works) to my new phone... and now it works there too !!

well almost : on the old phone I could manage the mouse pointer with the touch screen and use the game menu to select a track a car and then launch the race. On my current phone (Android 13) the game gets to the menu and then the menu keeps rolling as if I was pressing the down key all the time.

I'm going to connect a joystick or keyboard and try again.

I've noticed some weird behavior when trying to force game end through the android keys (show all apps, close all) : a message appears telling how much memory has been freed, but the game is still running (engine sound can be heard) and I have to close again a few times before the app is really closed

I've got a last side question : when I run the game with your modifications (both windows and android) the view is from inside the car (I don't see my own car), on the original game, the players car is on screen, is it a setting that you changed on purpose or something I should change from the menu (I haven't search a lot for now) ?

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

Good that's finally working!

I've got a last side question : when I run the game with your modifications (both windows and android) the view is from inside the car (I don't see my own car)

Change camera view ("C" button by default).

the game gets to the menu and then the menu keeps rolling as if I was pressing the down key all the time.

It uses accelerometer as a gamepad, try to put phone on a desk with screen up and keep phone in this position. I can disable this behavior, but with this it's possible to assign keys in game menu and play by tilting phone πŸ˜…

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

Updated package to d48f64c (could you test?): NFSIISE-debug-02.03.2024-22.30.apk.zip

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

I'm going to test right now :)

I had found the "C" key for the camera in the meantime (I was playing on the windows version to explore options)... but how can I simulate pressing the "c" key on android ? I suppose I can plug a keyboard once and change view by pressing C, on the windows version I noticed the changes are kept the next time you open the game

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

You can assing a gamepad key for camera view in game settings.

I have a bit motivation to do some improvements, so maybe I'll improve gamepad in this game!

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

It seems just perfect !! Thank you so much !

I've played with bluetooth keyboard and then bluetooth gamepad and it worked just fine ;)

I've noticed than the controls are more accurate with the keyboard, but that's nowhere near limiting my joy of playing the game. Once again, thank you so much for what you've done :)

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

I have a bit motivation to do some improvements, so maybe I'll improve gamepad in this game!

I have no idea about how hard it is to do, but... what about an on screen virtual gamepad ?

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

That's new APK: NFSIISE-debug-03.03.2024-23.14.apk.zip

Changes:

  • you can use touchscreen as a touchpad to move mouse cursor
  • tap-and-hold presses RETURN key
  • back button presses ESC key
  • fixed issue with bad image scaling (happened from time to time)
  • download the newest nfs2se.conf.template from master branch and rename it to nfs2se.conf (nfs2se.conf.template is no longer used on Android!)
  • you can disable accelerometer as joystick in nfs2se.conf (don't forget to update this file!) - remove # from AccelerometerAsJoystick line and set it to 0 - it will no longer "keeps rolling as if I was pressing the down key all the time" when your phon is in various positions

what about an on screen virtual gamepad ?

That's too much for now, maybe someday... πŸ˜„

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

Thanks again for your fantastic work. I will try the latest APK as soon as possible.
One final question : would you agree/be interested in your work being turned into a Retroarch core ? I know someone who's been thinking about making a core for NFSIISE...

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

Retroarch

I don't know this project, hmm.

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

https://www.retroarch.com/

Besides old computers and consoles, RA also allows old PC games to run on modern hardware

Let me know if you are interested

Edit : of course it's ok if you are not interested, I'm already very grateful for your work :)

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

Let me know if you are interested

What I should do? Maybe just make a script and prepare config file to run it there?

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

Now you can download released ZIP for Android, many things has been improved!

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

Thank you so much, I will try this today and send the link to my RetroArch contact :)

from nfsiise.

brunoooh avatar brunoooh commented on July 18, 2024

20240317_095255

Everything runs smoothly... but I get this error message each time I launch the app. I just press on OK and the game works perfectly

(Just to make things clear : the file nfs2se.conf is actually in the directory, despite the error message)

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

nfs2se.conf or nfs2se.conf.template? You need nfs2se.conf (as in ZIP). Remove the old file and copy new from ZIP. It's working good on my 3 phones πŸ˜„

from nfsiise.

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.