Pages:
1
2 |
josepgames
Loyalty card holder
Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline
Mood: Happy
|
|
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!!
[Edited on 31-10-2016 by josepgames]
Attachment: dukematch 2.z01 (5MB) This file has been downloaded 3405 times
[Edited on 31-10-2016 by josepgames]
Attachment: dukematch 2.zip (3.4MB) This file has been downloaded 3219 times
JosepGames
|
|
MikeDX
|
|
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?
|
|
josepgames
Loyalty card holder
Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline
Mood: Happy
|
|
Hi, it doesn't work with files greater than 5Mb... I'll try again later and i'll notify you. Thanks!!
JosepGames
|
|
MikeDX
|
|
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!
|
|
josepgames
Loyalty card holder
Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline
Mood: Happy
|
|
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
|
|
MikeDX
|
|
I did extract the pak but not the prg.
However due to some magic, we do not need the prg to run in DIVDX
|
|
josepgames
Loyalty card holder
Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline
Mood: Happy
|
|
And how do you compile without prg??
JosepGames
|
|
MikeDX
|
|
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!
|
|
josepgames
Loyalty card holder
Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline
Mood: Happy
|
|
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
|
|
MikeDX
|
|
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
|
|
josepgames
Loyalty card holder
Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline
Mood: Happy
|
|
Wow Mike! Amazing!!!
Would it be possible to generate android version as well?
JosepGames
|
|
josepgames
Loyalty card holder
Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline
Mood: Happy
|
|
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
|
|
MikeDX
|
|
You should be able to find that in your div/system folder
|
|
josepgames
Loyalty card holder
Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline
Mood: Happy
|
|
Thanks! I also needed to add some more .dll files at root folder, but doing that works flawlessly!
JosepGames
|
|
MikeDX
|
|
If you give me a list of those dlls i can include them in the package when the windows builds are made
|
|
josepgames
Loyalty card holder
Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline
Mood: Happy
|
|
Sure:
libgcc_s_sjlj-1.dll
libstdc++-6.dll
libwinpthread-1.dll
SDL.dll
SDL_mixer.dll
JosepGames
|
|
CicTec
DIV Pro
Posts: 471
Registered: 6-8-2016
Member Is Offline
|
|
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.
|
|
josepgames
Loyalty card holder
Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline
Mood: Happy
|
|
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
|
|
CicTec
DIV Pro
Posts: 471
Registered: 6-8-2016
Member Is Offline
|
|
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]
|
|
CicTec
DIV Pro
Posts: 471
Registered: 6-8-2016
Member Is Offline
|
|
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]
|
|
josepgames
Loyalty card holder
Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline
Mood: Happy
|
|
CicTec, I don't even think about recreating it ....
MikeDx, could you please publish the game online so that it can be played at GameOver section?
Thanks!
JosepGames
|
|
CicTec
DIV Pro
Posts: 471
Registered: 6-8-2016
Member Is Offline
|
|
Well, as you prefer, it is unfortunate to have lost the PRG, the game is very good.
|
|
josepgames
Loyalty card holder
Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline
Mood: Happy
|
|
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
|
|
CicTec
DIV Pro
Posts: 471
Registered: 6-8-2016
Member Is Offline
|
|
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]
|
|
josepgames
Loyalty card holder
Posts: 66
Registered: 31-10-2016
Location: Barcelona - Spain
Member Is Offline
Mood: Happy
|
|
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
|
|
Pages:
1
2 |