Release Dune Dynasty - Classic Dune 2. Modern Controls.

levi

Still fresh, damnit!
Joined
Oct 6, 2008
Messages
11,601
Location
Somewhere off the coast of the EU
Well, it did play for me a couple of years back (apparently no updates since then, at least none posted here), at least as far as the tutorial level, on a GHz pandora. Either it's a difference between GHz and rebirth units (quite plausible to me if it's GLES stuff based on the different drivers), or an OS update between then and now has broken things (but have we had an OS update in the past two years? I'd have to check)

Unfortunately as I've stated in other threads of yours, I'm in no position presently to test this again on my Pandora, unfortunately.
 

PowerGod

Advanced Member
Joined
Jun 20, 2011
Messages
3,111
I checked that the old version I had reported working, still didn't have the fixed scenario file installed !! So most probably I removed it at the time for the same reason.

Anyway I found out that there are different versions of the fix, that must match the correct Dune 2 release, so maybe the one that is downloaded from the script is not the one matching the release of the game from OpenDune. (Or maybe at some point in time, the files from OpenDune were changed.)

I'll do some tests with different versions to see what happens.

Anyway, seems like that the creator of Dune Dynasty deliberately left open many weird behaviour in the game to let people play without issues with the vanilla version, because a lot of them considered too much work to put game file in the folder, let alone searching for even the fixed files...

Seem so strange to me that a "scenario" file could crash the program at the start... I could understand issues during game play, but at the start is really weird...

EDIT:

Found what happens... the Fixed Scenario link is DEAD, the file created contains the html github page of the project....

I'm searching where they put the fix.
 
Last edited:

PowerGod

Advanced Member
Joined
Jun 20, 2011
Messages
3,111
Ok, found a link on another forum from a post of the author of the fix, because OpenDune seems to not have anymore a forum...

Here for reference:
Code:
http://nyerguds.arsaneus-design.com/dune/dune2patch/dune2_107_fix.rar
Taken from this post: https://forum.dune2k.com/topic/20168-dune-2-v107-fix/

Anyway, there are some things to keep into consideration:

1. This is a RAR, and I need to check if the Pandora can handle it by itself.
2. It contains different versions of the file, depending on what release of Dune 2 must be fixed. (In this case, for the OpenDune version, is the one in ARRAKIS)
3. So the script must be modified a bit to work, also, there's a catch, when it asks to download the fix, it doesn't check what version you are using. So if you put some other version by hand in the folder, it will asks anyway to substitute the file, and could be the wrong one.

There's a way to check this, by comparing the sizes of the executable that are both in the fixed archive folders, and the one present in the data folder. The one that matches points to the right "scenario.pak" to use.
The file is smaller than the original, but I checked that is normal because many commented lines where removed.

Also, this fix works only for the releases of Dune 2 with 3 languages (US/France/German), and is not to be installed for all the other ones, so the check with the executable should also prevent this.

EDIT:
The latest version of Dune Dynasty is not too newer than the one in the PND (Version 1.5.4), but contains interesting fixes.

Version 1.5.7, 2013-08-18
-------------------------

- Fix crash on startup when by using Spanish data files.
- Put nouns before adjectives for Italian and Spanish.
- Use English audio for Italian and Spanish.


Version 1.5.6, 2013-07-28
-------------------------

- Fix crash due to scenarios incorrectly using "MaxUnits" when it
should be "MaxUnit" (e.g. Stefan Hendriks' Atreides Campaign).
- Implemented true (timer-based) game speed adjustment option.
Enabling this will fix game-speed-dependent bugs in the original
game such as the sonic blast range and the launcher's inaccuracy.
- Fix error sound being played continuously when an AI cannot
release a saboteur.
- Launch deathhand missiles from the centre of the selected palace.
- In skirmish mode, fix walls being revealed to the player.


Version 1.5.5, 2013-05-12
-------------------------

- Fix crash caused by playing on maps where the AI has a starport.
- Fix starport sometimes showing items as requiring an upgrade.
- Fix box selection when mouse released in corner of screen.
- Fix loss of selection when a unit dies during targetting mode.
- Fix synth sound for unit acknowledgements and radar (de-)activation.
- Fix voices when playing in French or German.
- Always show the exit button in the mentat screen.
 
Last edited:

PowerGod

Advanced Member
Joined
Jun 20, 2011
Messages
3,111
I'm still working on the download script, but there are some issues that I can't understand how to solve...

This piece of code looks if "unrar" is installed, else it downloads it from the official site, and then will use it to extract the dunedynasty patch.
Now, if unrar is already present, there are no issues and everything is extracted in the right way.
If instead unrar is not present, it is downloaded and extracted correctly, BUT doesn't run from the script !! (if I go manually in appdata/dunedynasty and run the downloaded file, it works)

Code:
UnRAR_Path=$(which unrar)

if [ "$UnRAR_Path" == "" ]; then
        echo "Downloading UnRAR..."
        wget https://www.rarlab.com/rar/unrar-4.1.3-armv4l.tar.gz -P $PWD/ && \
                tar xzvf $PWD/unrar*.tar.gz && \
                gksu -S chmod +x $PWD/unrar && \ 
                UnRAR_Path=$PWD/unrar
        rm $PWD/unrar*.tar.gz
fi

echo "Downloading and extrancting the fixes..."
wget http://nyerguds.arsaneus-design.com/dune/dune2patch/dune2_107_fix.rar -P $PWD/ && \
        $UnRAR_Path x $PWD/dune2_107_fix.rar $PWD/data/dune2fix/ && \
        rm $PWD/dune2_107_fix.rar

As you can see from the log, it reports
Code:
/mnt/utmp/dunedynasty/unrar: No such file or directory
but the file is there... I also tried to make it executable, but nothing changed...
Code:
Downloading UnRAR...
--2019-06-17 21:32:30--  https://www.rarlab.com/rar/unrar-4.1.3-armv4l.tar.gz
Resolving www.rarlab.com... 5.135.104.98
Connecting to www.rarlab.com|5.135.104.98|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 114391 (112K) [application/x-gzip]
Saving to: '/mnt/utmp/dunedynasty/unrar-4.1.3-armv4l.tar.gz'

     0K .......... .......... .......... .......... .......... 44%  361K 0s
    50K .......... .......... .......... .......... .......... 89%  266K 0s
   100K .......... .                                          100% 1.06M=0.3s

2019-06-17 21:32:34 (331 KB/s) - '/mnt/utmp/dunedynasty/unrar-4.1.3-armv4l.tar.gz' saved [114391/114391]

unrar
Downloading and extrancting the fixes...
--2019-06-17 21:32:49--  http://nyerguds.arsaneus-design.com/dune/dune2patch/dune2_107_fix.rar
Resolving nyerguds.arsaneus-design.com... 217.26.53.216
Connecting to nyerguds.arsaneus-design.com|217.26.53.216|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1242964 (1.2M) [application/x-rar-compressed]
Saving to: '/mnt/utmp/dunedynasty/dune2_107_fix.rar'

     0K .......... .......... .......... .......... ..........  4%  236K 5s
    50K .......... .......... .......... .......... ..........  8%  446K 4s
   100K .......... .......... .......... .......... .......... 12%  330K 3s
   150K .......... .......... .......... .......... .......... 16%  273K 3s
   200K .......... .......... .......... .......... .......... 20%  293K 3s
   250K .......... .......... .......... .......... .......... 24%  589K 3s
   300K .......... .......... .......... .......... .......... 28%  331K 3s
   350K .......... .......... .......... .......... .......... 32%  340K 2s
   400K .......... .......... .......... .......... .......... 37%  331K 2s
   450K .......... .......... .......... .......... .......... 41%  341K 2s
   500K .......... .......... .......... .......... .......... 45%  329K 2s
   550K .......... .......... .......... .......... .......... 49%  340K 2s
   600K .......... .......... .......... .......... .......... 53%  331K 2s
   650K .......... .......... .......... .......... .......... 57%  332K 2s
   700K .......... .......... .......... .......... .......... 61%  340K 1s
   750K .......... .......... .......... .......... .......... 65%  332K 1s
   800K .......... .......... .......... .......... .......... 70%  339K 1s
   850K .......... .......... .......... .......... .......... 74%  332K 1s
   900K .......... .......... .......... .......... .......... 78%  339K 1s
   950K .......... .......... .......... .......... .......... 82%  331K 1s
  1000K .......... .......... .......... .......... .......... 86%  335K 0s
  1050K .......... .......... .......... .......... .......... 90%  336K 0s
  1100K .......... .......... .......... .......... .......... 94%  331K 0s
  1150K .......... .......... .......... .......... .......... 98%  338K 0s
  1200K .......... ...                                        100%  367K=3.6s

2019-06-17 21:32:53 (334 KB/s) - '/mnt/utmp/dunedynasty/dune2_107_fix.rar' saved [1242964/1242964]

./gamedata.sh: line 23: /mnt/utmp/dunedynasty/unrar: No such file or directory
No valid MIDI output ports.
  Please install and start Timidity++ like: timidity -iA -B 4,8
Dune data directory: .
Personal data directory: /mnt/utmp/dunedynasty/dunedynasty/
pandora_create_display(800, 480)
EGL ERROR: Unable to read ini settings from file 'eglport.cfg'. Using defaults
EGLport: Opening EGL display
EGLport: Using EGL_DEFAULT_DISPLAY
EGLport: Initializing

Buy the way, what are those MIDI and EGL errors ? The game seems working fine, and Timidity is already installed... the music plays in the game
[doublepost=1560801046,1560800988][/doublepost]I'm still working on the download script, but there are some issues that I can't understand how to solve...

This piece of code looks if "unrar" is installed, else it downloads it from the official site, and then will use it to extract the dunedynasty patch.
Now, if unrar is already present, there are no issues and everything is extracted in the right way.
If instead unrar is not present, it is downloaded and extracted correctly, BUT doesn't run from the script !! (if I go manually in appdata/dunedynasty and run the downloaded file, it works)

Code:
UnRAR_Path=$(which unrar)

if [ "$UnRAR_Path" == "" ]; then
        echo "Downloading UnRAR..."
        wget https://www.rarlab.com/rar/unrar-4.1.3-armv4l.tar.gz -P $PWD/ && \
                tar xzvf $PWD/unrar*.tar.gz && \
                gksu -S chmod +x $PWD/unrar && \
                UnRAR_Path=$PWD/unrar
        rm $PWD/unrar*.tar.gz
fi

echo "Downloading and extrancting the fixes..."
wget http://nyerguds.arsaneus-design.com/dune/dune2patch/dune2_107_fix.rar -P $PWD/ && \
        $UnRAR_Path x $PWD/dune2_107_fix.rar $PWD/data/dune2fix/ && \
        rm $PWD/dune2_107_fix.rar

As you can see from the log, it reports
Code:
/mnt/utmp/dunedynasty/unrar: No such file or directory
but the file is there... I also tried to make it executable, but nothing changed...
Code:
Downloading UnRAR...
--2019-06-17 21:32:30--  https://www.rarlab.com/rar/unrar-4.1.3-armv4l.tar.gz
Resolving www.rarlab.com... 5.135.104.98
Connecting to www.rarlab.com|5.135.104.98|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 114391 (112K) [application/x-gzip]
Saving to: '/mnt/utmp/dunedynasty/unrar-4.1.3-armv4l.tar.gz'

     0K .......... .......... .......... .......... .......... 44%  361K 0s
    50K .......... .......... .......... .......... .......... 89%  266K 0s
   100K .......... .                                          100% 1.06M=0.3s

2019-06-17 21:32:34 (331 KB/s) - '/mnt/utmp/dunedynasty/unrar-4.1.3-armv4l.tar.gz' saved [114391/114391]

unrar
Downloading and extrancting the fixes...
--2019-06-17 21:32:49--  http://nyerguds.arsaneus-design.com/dune/dune2patch/dune2_107_fix.rar
Resolving nyerguds.arsaneus-design.com... 217.26.53.216
Connecting to nyerguds.arsaneus-design.com|217.26.53.216|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1242964 (1.2M) [application/x-rar-compressed]
Saving to: '/mnt/utmp/dunedynasty/dune2_107_fix.rar'

     0K .......... .......... .......... .......... ..........  4%  236K 5s
    50K .......... .......... .......... .......... ..........  8%  446K 4s
   100K .......... .......... .......... .......... .......... 12%  330K 3s
   150K .......... .......... .......... .......... .......... 16%  273K 3s
   200K .......... .......... .......... .......... .......... 20%  293K 3s
   250K .......... .......... .......... .......... .......... 24%  589K 3s
   300K .......... .......... .......... .......... .......... 28%  331K 3s
   350K .......... .......... .......... .......... .......... 32%  340K 2s
   400K .......... .......... .......... .......... .......... 37%  331K 2s
   450K .......... .......... .......... .......... .......... 41%  341K 2s
   500K .......... .......... .......... .......... .......... 45%  329K 2s
   550K .......... .......... .......... .......... .......... 49%  340K 2s
   600K .......... .......... .......... .......... .......... 53%  331K 2s
   650K .......... .......... .......... .......... .......... 57%  332K 2s
   700K .......... .......... .......... .......... .......... 61%  340K 1s
   750K .......... .......... .......... .......... .......... 65%  332K 1s
   800K .......... .......... .......... .......... .......... 70%  339K 1s
   850K .......... .......... .......... .......... .......... 74%  332K 1s
   900K .......... .......... .......... .......... .......... 78%  339K 1s
   950K .......... .......... .......... .......... .......... 82%  331K 1s
  1000K .......... .......... .......... .......... .......... 86%  335K 0s
  1050K .......... .......... .......... .......... .......... 90%  336K 0s
  1100K .......... .......... .......... .......... .......... 94%  331K 0s
  1150K .......... .......... .......... .......... .......... 98%  338K 0s
  1200K .......... ...                                        100%  367K=3.6s

2019-06-17 21:32:53 (334 KB/s) - '/mnt/utmp/dunedynasty/dune2_107_fix.rar' saved [1242964/1242964]

./gamedata.sh: line 23: /mnt/utmp/dunedynasty/unrar: No such file or directory
No valid MIDI output ports.
  Please install and start Timidity++ like: timidity -iA -B 4,8
Dune data directory: .
Personal data directory: /mnt/utmp/dunedynasty/dunedynasty/
pandora_create_display(800, 480)
EGL ERROR: Unable to read ini settings from file 'eglport.cfg'. Using defaults
EGLport: Opening EGL display
EGLport: Using EGL_DEFAULT_DISPLAY
EGLport: Initializing

Buy the way, what are those MIDI and EGL errors ? The game seems working fine, and Timidity is already installed... the music plays in the game
 
Top