Community
Message Board

Chat room - users
Game Over
( 394431 downloads)
Work In Progress
( 523201 downloads)
Links

Code Exchange
Downloads
Tutorials
Add to Favourites

Submit news

DIV ARENA FORUMS
Not logged in [Login - Register]
Go To Bottom

Printable Version  
 Pages:  1  
Author: Subject: Dukematch - extract source files please!
josepgames
Loyalty card holder
******


Avatar


Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline

Mood: Happy

[*] posted on 31-10-2016 at 02:53 PM
Dukematch - extract source files please!


Hi,

I send you the binaries of a compiled game (in div2), could you extract for me source files and code so that I can compile it back using Div DX?

Thanks!!

i_duk_1.jpg - 26kB i_duk_2.jpg - 37kB i_duk_3.jpg - 65kB i_duk_4.jpg - 37kB

[Edited on 31-10-2016 by josepgames]

Attachment: dukematch 2.z01 (5MB)
This file has been downloaded 2396 times

[Edited on 31-10-2016 by josepgames]

Attachment: dukematch 2.zip (3.4MB)
This file has been downloaded 2264 times





JosepGames
View user's profile Visit user's homepage View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 31-10-2016 at 03:04 PM


The zip is sadly corrupted and cannot extract here.

You should be able to upload a single file of more than 5mb. Can you make a single zip?
View user's profile View All Posts By User
josepgames
Loyalty card holder
******


Avatar


Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline

Mood: Happy

[*] posted on 31-10-2016 at 10:10 PM


Hi, it doesn't work with files greater than 5Mb... I'll try again later and i'll notify you. Thanks!!



JosepGames
View user's profile Visit user's homepage View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 31-10-2016 at 10:54 PM


I've extracted the FPG files to a zip, but for some reason as you say the file uploader is maxed at 5mb! Very strange!

View user's profile View All Posts By User
josepgames
Loyalty card holder
******


Avatar


Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline

Mood: Happy

[*] posted on 1-11-2016 at 06:58 AM


Great! So you finally could extract the file? And is it possible to retrieve the .PRG file to recompile it in div dx?

Thanks!




JosepGames
View user's profile Visit user's homepage View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 1-11-2016 at 02:51 PM


I did extract the pak but not the prg.

However due to some magic, we do not need the prg to run in DIVDX :)

View user's profile View All Posts By User
josepgames
Loyalty card holder
******


Avatar


Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline

Mood: Happy

[*] posted on 1-11-2016 at 03:03 PM


And how do you compile without prg??



JosepGames
View user's profile Visit user's homepage View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 1-11-2016 at 03:26 PM


Modern div isn't a remake, it's the same dos code, so with some magic we can convert the old dos exe to run with a new version of div32run.dll

Most of the games on this site and on http://js.mikedx.co.uk are dos games without prg files. This works for exe made with both div1 and div2!
View user's profile View All Posts By User
josepgames
Loyalty card holder
******


Avatar


Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline

Mood: Happy

[*] posted on 1-11-2016 at 04:03 PM


Amazing!! I'll post more games to convert once this one is ready. Excellent work! I'm so glad you've continued this project!



JosepGames
View user's profile Visit user's homepage View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 1-11-2016 at 07:01 PM


I've uploaded the game

http://js.mikedx.co.uk/dukematch.html

you should be able to download windows and linux versions from there too :)
View user's profile View All Posts By User
josepgames
Loyalty card holder
******


Avatar


Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline

Mood: Happy

[*] posted on 2-11-2016 at 08:24 AM


Wow Mike! Amazing!!!
Would it be possible to generate android version as well?




JosepGames
View user's profile Visit user's homepage View All Posts By User
josepgames
Loyalty card holder
******


Avatar


Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline

Mood: Happy

[*] posted on 2-11-2016 at 08:27 AM


Hi Mike,

I've tried to run Windows version but it complains about a missing lib file:

libgcc_s_sjlj-1.dll

How can I fix this?
Thanks!




JosepGames
View user's profile Visit user's homepage View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 2-11-2016 at 08:49 AM


You should be able to find that in your div/system folder
View user's profile View All Posts By User
josepgames
Loyalty card holder
******


Avatar


Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline

Mood: Happy

[*] posted on 2-11-2016 at 09:43 AM


Thanks! I also needed to add some more .dll files at root folder, but doing that works flawlessly!



JosepGames
View user's profile Visit user's homepage View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 2-11-2016 at 09:45 AM


If you give me a list of those dlls i can include them in the package when the windows builds are made
View user's profile View All Posts By User
josepgames
Loyalty card holder
******


Avatar


Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline

Mood: Happy

[*] posted on 2-11-2016 at 09:46 AM


Sure:

libgcc_s_sjlj-1.dll
libstdc++-6.dll
libwinpthread-1.dll
SDL.dll
SDL_mixer.dll




JosepGames
View user's profile Visit user's homepage View All Posts By User
CicTec
DIV Pro
******




Posts: 433
Registered: 6-8-2016
Member Is Offline


[*] posted on 2-11-2016 at 12:34 PM


Quote: Originally posted by josepgames  
Great! So you finally could extract the file? And is it possible to retrieve the .PRG file to recompile it in div dx?

Thanks!

Hola Josepgames,

Para recuperar el PRG seria necesario un decompiler, o sea una compilador capaz de leer el bytecode y reecrear la estructura del codigo fuente, que en todo caso nunca sera igual al original. Todavia dependiendo del tipo de compilacion hecha originalmente por el juego (especialmente si se usaban optimizaciones) podria no ser posible recuperar el PRG si el bytecode no tiene suficientes informaciones para la generacion.

Lo que Mike ha hecho es partendo de la estructura del bytecode crear un ROM que permita leer el codigo "binario" generado dal DIV2 DOS y ejecutarlo en plataformas modernas.

--------------------------------------------------------------------------------

To retrieve the PRG requires a decompiler, ie a compiler capable of reading the byte code and recreate the structure of the source code, which in any case will never be equal to the original. However depending on the type of compilation originally made for the game (especially it is used optimizations) may not be possible to recover the PRG if the bytecode does not contain sufficient information for the generation.

What Mike has done, it is starting from the structure of the byt code, create a ROM that allows to read the "binary" code generated DIV2 DOS and run on modern platforms.
View user's profile View All Posts By User
josepgames
Loyalty card holder
******


Avatar


Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline

Mood: Happy

[*] posted on 2-11-2016 at 12:37 PM


Hola CicTec!

Gracias por tu respuesta. Entiendo perfectamente lo que dices. De todos modos seria genial tener un decompilador, aunque nunca se consiga el código original, al menos se podría recuperar el código fuente, por feo que fuera al menos se podría aplicar cambios al software... ahora mismo al perder el código fuente no puedo modificar nada...

Hay alguien que haya creado un decompilador de DIV?




JosepGames
View user's profile Visit user's homepage View All Posts By User
CicTec
DIV Pro
******




Posts: 433
Registered: 6-8-2016
Member Is Offline


[*] posted on 2-11-2016 at 12:42 PM


Que yo sepa nadie lo ha creado, podria intentarlo Mike, pero como dicho, si la informacion del bytecode no es suficiente no seria posible, o almenos para la gran mayoria de los juegos.

------------------------------------------------------------------------------------------------------------------------------------------------------ -

No that I know, Mike could try, however, as already said, if the information of the bytecode is not enough would not be possible, or at least for most of the games.

[Edited on 2-11-2016 by CicTec]

[Edited on 2-11-2016 by CicTec]
View user's profile View All Posts By User
CicTec
DIV Pro
******




Posts: 433
Registered: 6-8-2016
Member Is Offline


[*] posted on 2-11-2016 at 12:47 PM


Quote: Originally posted by josepgames  
ahora mismo al perder el código fuente no puedo modificar nada...

Sin el decompiler me temo que no tengas otra solucion que recrear el PRG de 0 si deseas seguir con el juego.

----------------------------------------------------------------------------------

Without the decompiler, I fear that you have no other solution than to recreate the PRG from 0 if you want continue the game.

[Edited on 2-11-2016 by CicTec]
View user's profile View All Posts By User
josepgames
Loyalty card holder
******


Avatar


Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline

Mood: Happy

[*] posted on 3-11-2016 at 03:43 PM


CicTec, I don't even think about recreating it :no::no::no:....

MikeDx, could you please publish the game online so that it can be played at GameOver section?

Thanks!




JosepGames
View user's profile Visit user's homepage View All Posts By User
CicTec
DIV Pro
******




Posts: 433
Registered: 6-8-2016
Member Is Offline


[*] posted on 4-11-2016 at 09:46 AM


Quote: Originally posted by josepgames  
CicTec, I don't even think about recreating it :no::no::no:....

Well, as you prefer, it is unfortunate to have lost the PRG, the game is very good.
View user's profile View All Posts By User
josepgames
Loyalty card holder
******


Avatar


Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline

Mood: Happy

[*] posted on 4-11-2016 at 10:06 AM


Yes... I'm still wondering how I programmed the AI at that moment with the little kwnoledge I had at that time...

I'll try to run unformat at an ancient PC i still hold from that time (i386) and see If I have luck trying to recover files!!!





JosepGames
View user's profile Visit user's homepage View All Posts By User
CicTec
DIV Pro
******




Posts: 433
Registered: 6-8-2016
Member Is Offline


[*] posted on 4-11-2016 at 10:24 AM


If you have the old HDD working, you don't need to use unformat, you need a program like it:
https://www.runtime.org/data-recovery-software.htm

Run this program in the i386 for your old HDD in full mode, should be able to recover your files before formatting, then uses another HDD to copy any data that will recover. Remember not to use the same disk or not to write anything on it, or the old content will be lost forever.

Good Luck.


[Edited on 4-11-2016 by CicTec]
View user's profile View All Posts By User
josepgames
Loyalty card holder
******


Avatar


Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline

Mood: Happy

[*] posted on 4-11-2016 at 10:35 AM


Hi CicTec,

Thanks for the info! I really meant a tool like undelete (more than unformat) like the one you say. I don't know if'll be able to connect anything at that machine (is really old) I guess a floppy disk will do the job for .PRG files...

I'll tell you if I can recover source files anyhow... thanks!!!!




JosepGames
View user's profile Visit user's homepage View All Posts By User
 Pages:  1  

  Go To Top

Powered by XMB
XMB Forum Software © 2001-2012 The XMB Group
[Queries: 18]