Jump to content
maabus

[Arcade PC] Daphne / Singe set (Laser Disc)

Recommended Posts

1 hour ago, xxOToTOxx said:

I presume it is the same version then, only one I have ever seen.

 

Here is a link to that single file, which you can drop straight into the cdrom directory:

 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Cheers

 

Thanks, i added  your links to the ALG section.

Share this post


Link to post
Share on other sites

Hi guys, on a completely different topic, I am attempting to run Arcade games, Ninja Hayate and TimeGal on a Linux version of Daphne SINGE - It is having issues reading the timegal.singe, hayate.singe file as they are compiled LUA bytecode, (I am currently presuming 32bit).

 

hayate.singe: Lua bytecode, version 5.1

timegal.singe: Lua bytecode, version 5.1

 

I am wondering if anyone had been able to de-compile versions of these files into plain LUA, or construct a reverse engineered version of them ?

 

These are currently the only files I am having issues with on my 64bit system....

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Any help appreciated...

 

Edited by xxOToTOxx

Share this post


Link to post
Share on other sites
41 minutes ago, xxOToTOxx said:

Hi guys, on a completely different topic, I am attempting to run Arcade games, Ninja Hayate and TimeGal on a Linux version of Daphne SINGE - It is having issues reading the timegal.singe, hayate.singe file as they are compiled LUA bytecode, (I am currently presuming 32bit).

 

hayate.singe: Lua bytecode, version 5.1

timegal.singe: Lua bytecode, version 5.1

 

I am wondering if anyone had been able to de-compile versions of these files into plain LUA, or construct a reverse engineered version of them ?

 

These are currently the only files I am having issues with on my 64bit system....

 

Booting ROM ...
Starting Singe version 1.14
SINGE: Script Error!
SINGE: error compiling script: /home/user/.daphne/singe/timegal/timegal.singe: bad header in precompiled chunk
Shutting down sound system...
 

Any help appreciated...

 

I have been looking for these as well. they are the only ones i cant have the files seperated from the videos in a different folder.

Share this post


Link to post
Share on other sites
3 hours ago, maabus said:

I have been looking for these as well. they are the only ones i cant have the files seperated from the videos in a different folder.

 

OK, then I have some interesting news.....

 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

mv timegal.singe timegal.luac
java -jar unluac_2015_06_13.jar timegal.luac > timegal.singe

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

It takes an age to boot, and the timegal.singe is looking a little muggled, but it runs......!!!

 

Getting late here now, so will try and run game tomorrow.....

 

Cheers

Edited by xxOToTOxx
Add unluac github repo

Share this post


Link to post
Share on other sites

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

So same issue in both games...... do we have any LUA language aficionados here, they could perhaps shed some light.... I haven't programmed Lua before

 

The game and intro video start, accepts coins but bombs out as you attempt to start game......

 

Would be nice to have a method to reverse engineer these bytecode singe files... 

 

Update:

 

I have found the parent repo to the unluac.jar code, which has a newer version, but provides the same Lua script:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Compiled jar with:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

Hidden Content

    Give reaction or reply to this topic to see the hidden content.
   - unluac.jar v1.2.3.309

 

Cheers

 

Edited by xxOToTOxx
Added MEGA link to latest unluac.jar

Share this post


Link to post
Share on other sites

THIS DECOMPILER DOES NOT WORK CORRECTLY - USE Java BASED unluac.jar FOR SANE Lua CONVERSION,,,, 

 

OK, so getting to the end of what I believe is possible in decompiling these byte code.

 

I managed to get a 32bit version of luadec from 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.
 compiled which was able to read and 'decompile' the files.

It generated considerably more output than the Java decompiler (links above), however seems to actually work less in SINGE.

It also stated several errors in the output:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

I think reverse engineering these bytecode Lua files is going to go beyond my ability and available time at this point,

 

I will however post the newest Lua singe files here on the off chance that someone else who knows more about Lua may take an interest. 

 

Removed: 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.
             - timegal_v2.singe

Removed: 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.
     - hayate_v2.singe

 

Rather annoying, as obfuscating these files, as was most probably the original purpose, has also restricted them to 32bit systems...

Be nice if it was possible to grab the original source and open them up......

 

Edited by xxOToTOxx
Highlighting incorrect results from this decompiler....

Share this post


Link to post
Share on other sites

Hi,

do you know the Singe2 project for Linux?

 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

Share this post


Link to post
Share on other sites
16 hours ago, famawizard said:

Hi,

do you know the Singe2 project for Linux?

 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Hey Famawizard,

 

Many thanks for that, looks like a really young project.

 

I was looking at source code of current singe 64bit library to see if I could alter the method the .singe file is opened and read, to get around the 32bit issue.

 

Wonder if/how this project is handling it....

 

One to watch.

 

 

Edited by xxOToTOxx

Share this post


Link to post
Share on other sites
On 13/12/2019 at 8:34 PM, xxOToTOxx said:

I was looking at source code of current singe 64bit library to see if I could alter the method the .singe file is opened and read, to get around the 32bit issue.

 

I feel like this forum is turning into my personal Blog, please let me know if these posts are deemed inappropriate.

 

So, two more interesting discoveries...

 

1) Referring to my investigation above, I was able to get the current 64bit singe library to read the original 32bit byte code singe file via trivial changes described in this post:

 

   

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

The game then read the original compiled bytecode timegal.singe and loaded the game. However, when attempting to start the game I got exactly the same error as I do with...

 

2) .. the decompiled Lua given by the Java based unluac.jar process.

 

I can't get testing past this point, HOWEVER, this may indicate that the Java decompiler may in fact be correctly decompiling the Lua.

 

Therefore, could I ask one of you guys who have a working Time Gal or Hayate to swap out the relevant .singe file from above and see if the game still does actually play ?

 

If that is the case, then I know that the issue my side is actually the linux singe implementaion and not the singe files and we do in fact have working decompiled files........

 

 

Edited by xxOToTOxx

Share this post


Link to post
Share on other sites

I tried TimeGal, and it loaded, and let me put in a coin. I went to the ice age level, but could not do the action.

 

I am remoted into my arcade cab right now so maybe there is probably a delay and I'm not sending the command in time. I'll test again when i get home.

That singe file is still pretty jacked up... but great job so far!

Share this post


Link to post
Share on other sites

Success,

 

I can confirm that these are decompiled files and work!  The error:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

I fixed the issue in the decompiled timegal.singe file thus:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

And we have a running game.......

Screenshot from 2019-12-14 00-38-50.png

 

Not certain, why this issue seems specific to my installation, but the change to the singe file seems sane in any case.....

Edited by xxOToTOxx

Share this post


Link to post
Share on other sites

SINGE is LUA script based, so all the games use LUA scripts.

 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

It just happened that these games used compiled LUA (bytecode), for reasons best known to the author....

Share this post


Link to post
Share on other sites

And a final observation for this evening, looking in the timegal.cfg file we see references to random variable keys names (have always been there):

 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

These variables can now be seen in the decompiled timegal.singe file, so it would appear the weird random variable/key names now seen in this file are deliberate (or at least a result of the programming editor) and not just a consequence of the decompilation:

 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

and if you wanted to move those images, wav files or video around, the resource file locations are all in there too...

 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

Interesting exercise......

Edited by xxOToTOxx

Share this post


Link to post
Share on other sites

Code may be obfuscated due to contractual obligations, seems a normal, if not futile, practice: 

 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.
 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Cheers guys for all the help and testing.

Edited by xxOToTOxx

Share this post


Link to post
Share on other sites

So starting to play around with the exposed LUA now, and annoyed by the 90 second Copyright notice at the beginning of each game, attempted to bypass it.

 

Edit:

This timing issue turned out to be a 32=>64 bit transition bug in the Lua os.clock() function - I fixed it in the singe 1.18 github repository:

 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Note: The nil arithmetic bug still existed. The .singe bytecode files with fixed arithmetic checks are available in the above repo also.

 

..

Edited by xxOToTOxx

Share this post


Link to post
Share on other sites
On 13/12/2019 at 8:07 PM, famawizard said:

Hi,

do you know the Singe2 project for Linux?

 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Hi,

 

Looking back at this project, seems to stem from Singe 1.18, a fork of daphne plugin to run as a standalone. I hadn't come across this later release, so used it to commit a Github project.

 

I think Singe2 may be be going a different route, but 1.18 has all the current singe games running that I have tried after applying some of the caveats learnt here.

 

There are various changes listed in the changelog, including multiple mouse support, but primary fix I saw benefit from was the fix of some Alpha Blending issues.

 

Giithub here:  

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

 

Edited by xxOToTOxx

Share this post


Link to post
Share on other sites
11 minuti fa, xxOToTOxx ha scritto:

 

Hi,

 

Looking back at this project, seems to stem from Singe 1.18, a fork of daphne plugin to run as a standalone. I hadn't come across this later release, so used it to commit a Github project.

 

I think Singe2 may be be going a different route, but 1.18 has all the current singe games running that I have tried after applying some of the caveats learnt here.

 

Giithub here:  

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

 

Thanks, I will look at this (when I will have some spare time ;-)

One thing to do should be adding the possibility to use higher resolutions for overlays...

Share this post


Link to post
Share on other sites
19 minutes ago, famawizard said:

One thing to do should be adding the possibility to use higher resolutions for overlays...

 

The singe.sh scripts accepts 4:3 ratios via the x,y variables at the base and resizing via SDL.

 

I have run at 1600x1200 and 2048x1536 but image, of course, depends on source video quality and upscaling.

 

Unless I am barking up the wrong tree....?

 

Site won't seem to let me upload images at these resolutions, although only 800k....

Share this post


Link to post
Share on other sites
20 minuti fa, xxOToTOxx ha scritto:

 

The singe.sh scripts accepts 4:3 ratios via the x,y variables at the base and resizing via SDL.

 

I have run at 1600x1200 and 2048x1536 but image, of course, depends on source video quality and upscaling.

 

Unless I am barking up the wrong tree....?

 

Site won't seem to let me upload images at these resolutions, although only 800k....

Yes, but sprites and mouse coordinates are always in the 356x240 range

Share this post


Link to post
Share on other sites

Uploaded the final and complete version of Platoon:

 

There are three versions:

  platoon_skey                    game with one key per event

  platoon_mkeys                 game with multiple keys per event (only from HIGH difficulty)

  platoon_mouse                 game with mouse/light gun (only from HIGH difficulty) --RELOAD by shooting the lower part of screen --- pay attention to timing ;-)

 

 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.
 

Good playing ;-)

Edited by famawizard

Share this post


Link to post
Share on other sites

This is an AMAZING thread!! Thank you everyone for all the hard work!

 

ps. You may want to add this to the original post.

 

 

Edited by Visitor Q

Share this post


Link to post
Share on other sites

For any Linux users out there, there are a lack of GUI frontends for firing up these games.

 

Began playing with GTK, and created some basic launchers here:

 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Version 2 - layout based around DaphneLoader by Matt Ownby.

 

daphneloader.png

 

 

singeloader.png

 

 

actionmaxlauncher.png

 

 

If there is sufficient interest, I may extend.

Edited by xxOToTOxx
Edit for V2 Utils

Share this post


Link to post
Share on other sites

Hello, what about a remaster of Road Blaster? maybe fromthe ipad version hd video?

Share this post


Link to post
Share on other sites

The link below (the last one of the first post) is broken:

 

Quote

Alternate links

Full 26 Daphne/Singe set alternate link provided by Gwyllion

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

It was about 30 GB. If it is reposted someday, could it please be broken in several parts? It's easier to download this way. Thank you in advance.

Share this post


Link to post
Share on other sites

He took down his links. Unfortunately i do not have a copy of his. I believe that copies he had are the same as the ones that i posted.

Share this post


Link to post
Share on other sites
On 2/8/2020 at 5:25 AM, maabus said:

He took down his links. Unfortunately i do not have a copy of his. I believe that copies he had are the same as the ones that i posted.

hello, if you have complete set of singe can you give link, thanks 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×