Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
79 user(s) are online (57 user(s) are browsing Forums)

Members: 1
Guests: 78

Lio, more...

Headlines

 
  Register To Post
« 1 ... 3 4 5 (6) 7 »

Re: DevilutionX - Diablo 1
Just popping in
Just popping in


See User information
Just wondering if there's been any updates on this.

Thanks!

Go to top
Re: DevilutionX - Diablo 1
Just popping in
Just popping in


See User information
@Nuder_Try

Repinging on this for status

Go to top
Re: DevilutionX - Diablo 1
Home away from home
Home away from home


See User information
Version 1.3.0 is on the way and that version will be (probably) stable enough .. maybe better wait a bit until released, then try recompiling from that version

Go to top
Re: DevilutionX - Diablo 1
Home away from home
Home away from home


See User information
@samo79

thanks for the heads up...hopefully new version will alow save games to work

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Indivision AGA & Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top
Re: DevilutionX - Diablo 1
Site Builder
Site Builder


See User information
Based on https://www.gamingonlinux.com/2021/11/ ... utionx-gets-a-big-upgrade a devilutionX got a big upgrade and new features. Is anyone working on an updated port?

Go to top
Re: DevilutionX - Diablo 1
Home away from home
Home away from home


See User information
Version 1.4.0 out .. maybe kas1e later.. or someone else ?

Go to top
Re: DevilutionX - Diablo 1
Not too shy to talk
Not too shy to talk


See User information
@all

There is a fork of DevilutionX 1.4 for MorphOS

https://github.com/widelec-BB/devilutionX

I think we can bring this port to AmigaOS4 like VanillaConquer and Augustus.

Does anyone know how to contact Filip Maryjañski (MorphOS port author). I can't find any contact in his Github page.

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: DevilutionX - Diablo 1
Home away from home
Home away from home


See User information

Go to top
Re: DevilutionX - Diablo 1
Home away from home
Home away from home


See User information
@SinanSam460

I'm confused.. this was ported by Kas1e before to AmigaOS4,
why not on OS4Depot.net, I don't know.

https://www.amigans.net/modules/newbb/ ... &order=ASC&status=&mode=0

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: DevilutionX - Diablo 1
Home away from home
Home away from home


See User information
@LveForIT
Because it was full of bugs, Save didn't works, runs not all the time, etc, etc, which point out on bugs in the port-code. I assume it still have the same issues.

Go to top
Re: DevilutionX - Diablo 1
Not too shy to talk
Not too shy to talk


See User information
@samo79

Let's hope I am welcomed at MorphOS IRC channel :)

Maybe I should use my MorphOS PowerMAC G4 :)

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: DevilutionX - Diablo 1
Not too shy to talk
Not too shy to talk


See User information
@all

@all

Now I am trying to compile Devilution 1.4 from

https://github.com/diasurgical/devilutionX

Using this CMake (found an old one at Kas1e's website)

cmake \
-DCMAKE_SYSTEM_NAME=Generic \
-DBINARY_RELEASE=ON \
-DDEBUG=OFF \
-DASAN=OFF \
-DAMIGA=1 \
-DCMAKE_SYSTEM_VERSION=1 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_THREAD_LIBS_INIT="-lpthread" \
-DCMAKE_HAVE_THREADS_LIBRARY=1 \
-DCMAKE_USE_WIN32_THREADS_INIT=0 \
-DCMAKE_USE_PTHREADS_INIT=1 \
-DTHREADS_PREFER_PTHREAD_FLAG=ON \
-DCMAKE_C_COMPILER="/usr/local/amiga/bin/ppc-amigaos-gcc" \
-DCMAKE_CXX_COMPILER="/usr/local/amiga/bin/ppc-amigaos-g++" \
-DCMAKE_CXX_FLAGS="-mcrt=clib2" \
-DCMAKE_C_FLAGS="-mcrt=clib2" \
-DCMAKE_LINKER="/usr/local/amiga/bin/ppc-amigaos-ld" \
-DCMAKE_AR="/usr/local/amiga/bin/ppc-amigaos-ar" \
-DCMAKE_RANLIB="/usr/local/amiga/bin/ppc-amigaos-ranlib" \
-DCMAKE_FIND_ROOT_PATH="/usr/local/amiga/ppc-amigaos/" \
-DFREETYPE_LIBRARY=/usr/local/amiga/ppc-amigaos/SDK/local/clib2/lib/libfreetype.a \
-DFREETYPE_INCLUDE_DIRS=/usr/local/amiga/ppc-amigaos/SDK/local/clib2/include \
-DZLIB_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/common/include/" \
-DZLIB_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/lib/libz.a" \
-DSDL_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/lib/libSDL.a" \
-DSDL_IMAGE_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/lib/libSDL_image.a" \
-DSDL_AUDIO_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/lib/libSDL_sound.a" \
-DSDL_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/include/SDL/" \
-DSDL_TTF_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/lib/libsdl_ttf.a" \
-DSDL_TTF_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/common/include/SDL/" \
-DSDL_MIXER_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/lib/libsdl_mixer.a" \
-DSDL_MIXER_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/include/SDL/" \
..


Compilaton reaches 37% and stops following error

37%] Building C object 3rdParty/bzip2/CMakeFiles/BZip2.dir/bz_internal_error.c.obj
<command-line>: errorconflicting types for ‘fseek’have ‘int(FILE *, off_t,  int)’ {aka ‘int(struct __sFILE *, long long int,  int)}
In file included from /amiga/develop/devilutionX/3rdParty/bzip2/bz_internal_error.c:1:
/
usr/local/amiga/ppc-amigaos/SDK/clib2/include/stdio.h:152:12noteprevious declaration of ‘fseek’ with type ‘int(FILE *, long int,  int)’ {aka ‘int(struct __sFILE *, long int,  int)}
  
152 extern int fseek(FILE *streamlong int offsetint wherefrom);
      |            ^~~~~
make[2]: *** [3rdParty/bzip2/CMakeFiles/BZip2.dir/build.make:1743rdParty/bzip2/CMakeFiles/BZip2.dir/bz_internal_error.c.objError 1

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: DevilutionX - Diablo 1
Not too shy to talk
Not too shy to talk


See User information
@all

Filip Maryjañski has published his MorphOS 1.4.1 port on GitHub with BigEndian fixes.

https://github.com/widelec-bb/devilutionx

Currently I still have problem when compiling the project.

If someone is interested, maybe he can take a look

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: DevilutionX - Diablo 1
Not too shy to talk
Not too shy to talk


See User information
@all

Now I have switched to newlib. Progress is better than trying to compile with clib2.

Now at 54%, I have a problem with std::wstring
54%] Building CXX object _deps/libfmt-build/CMakeFiles/fmt.dir/src/format.cc.obj
In file included from 
/amiga/develop/devilutionX/build/_deps/libfmt-src/include/fmt/format-inl.h:29,
                 
from /amiga/develop/devilutionX/build/_deps/libfmt-src/src/format.cc:8:
/
amiga/develop/devilutionX/build/_deps/libfmt-src/include/fmt/format.h:1262:28error‘wstring’ in namespace ‘std’ does not name a type
 1262 
|   auto str() const -> std::wstring { return {&buffer_[0], size()}; }
      |                            ^~~~~~~
/
amiga/develop/devilutionX/build/_deps/libfmt-src/include/fmt/format.h:49:1note‘std::wstring’ is defined in header ‘<string>did you forget to ‘#include <string>’?
   
48 #include "core.h"
  
+++ |+#include <string>
   
49 |
make[2]: *** [_deps/libfmt-build/CMakeFiles/fmt.dir/build.make:76_deps/libfmt-build/CMakeFiles/fmt.dir/src/format.cc.objError 1
make
[1]: *** [CMakeFiles/Makefile2:2313_deps/libfmt-build/CMakeFiles/fmt.dir/allError 2
make
: *** [Makefile:146allError 2


I tried adding #include <string>, but no change.

Any ideas ?

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: DevilutionX - Diablo 1
Home away from home
Home away from home


See User information
@Sinan
With fseek() problems seems a bit different than just redeclaration of fseek() function..

See in command line they use -Dfseeko=fseek. That what i find in amiga.cmake:

# `fseeko` fails to link on Amiga.
add_definitions(-Dfseeko=fseek)


We probabaly can get rid of this -Dfseeko=fseek. Through strange why we fail, and why clib2 stdio.h have :

extern int fseek(FILE *stream, long int offset, int wherefrom);

while newlib have:

int _EXFUN(fseek, (FILE *, long, int));

If i change in clib2 header "long int" on "long long int", then it compiles even with -Dfseeko=fseek.

Anyway, to fix it for clib2, just go to amiga.cmake, and comment out this defination, so no -Dfseeko=fseek will be added to command line.

Go to top
Re: DevilutionX - Diablo 1
Not too shy to talk
Not too shy to talk


See User information
@kas1e

Thanks. after commenting out
add_definitions(-Dfseeko=fseek)

I was able to compile objects 100%

However in the last linking devilutionX executeable, I get this:

Are you able to compile the project 100% ?

/tmp/ccjD69Ry.ltrans32.ltrans.o:(.rodata+0xfc): undefined reference to `_ZNKSt19__codecvt_utf8_baseIDiE6do_outER10_mbstate_tPKDiS4_RS4_PcS6_RS6_'
/tmp/ccjD69Ry.ltrans32.ltrans.o:(.rodata+0x100): undefined reference to 
`_ZNKSt19__codecvt_utf8_baseIDiE10do_unshiftER10_mbstate_tPcS3_RS3_'
/tmp/ccjD69Ry.ltrans32.ltrans.o:(.rodata+0x104): undefined reference to `_ZNKSt19__codecvt_utf8_baseIDiE5do_inER10_mbstate_tPKcS4_RS4_PDiS6_RS6_'
/tmp/ccjD69Ry.ltrans32.ltrans.o:(.rodata+0x110): undefined reference to `_ZNKSt19__codecvt_utf8_baseIDiE9do_lengthER10_mbstate_tPKcS4_j'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/devilutionx.dir/build.make:404: devilutionx] Error 1
make[1]: *** [CMakeFiles/Makefile2:1167: CMakeFiles/devilutionx.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: DevilutionX - Diablo 1
Home away from home
Home away from home


See User information
@SinanSam460
I didn't try to compile it fully, just passed fseek() issue.

As for linking erros, it remind me the same errors i had when tryied to build some stuff (See those "mbstate" words in errors).

I ask Andrea about , and he say that you have to compile libstdc++ with new clib2 otherwise you will get this error. Do not know if that the case, but you may try to build libstd++ over new clib2 and test (Andrea post somewhere a sript of how to rebuild it without needs to rebuild whole adtools)

Go to top
Re: DevilutionX - Diablo 1
Not too shy to talk
Not too shy to talk


See User information
@kas1e

I searched for "codecvt_utf8" in DevilutionX source code.

I found it in 2 places.

When I google'd it:
It seems C++17: codecvt_utf8 is deprecated
https://codingtidbit.com/2020/02/09/c17-codecvt_utf8-is-deprecated/



misc_msg.cpp:
#ifdef USE_SDL1
        
if (gbRunGame && (IsTalkActive() || dropGoldFlag)) {
            
Uint16 unicode e.key.keysym.unicode;
            if (
unicode >= ' ') {
                
std::wstring_convert<std::codecvt_utf8<char32_t>, char32_tconvert;
                
std::string utf8 convert.to_bytes(unicode);
                if (
IsTalkActive())
                    
control_new_text(utf8);
                if (
dropGoldFlag)
                    
GoldDropNewText(utf8);
            }
        }
#endif
places

and diabloui.cpp:
#ifdef USE_SDL1
            
if ((event->key.keysym.mod KMOD_CTRL) == 0) {
                
Uint16 unicode event->key.keysym.unicode;
                
std::wstring_convert<std::codecvt_utf8<char32_t>, char32_tconvert;
                
std::string utf8 convert.to_bytes(unicode);
                
SelheroCatToName(utf8.c_str(), UiTextInputUiTextInputLen);
            }
#endif

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: DevilutionX - Diablo 1
Just popping in
Just popping in


See User information
@SinanSam460

codecvt_utf8 was introduced in c++-11 but removed from c++-17 so
either build with std=c++-11 or change it to

std::codecvt
conversion between UTF-32 and UTF-8 (since C++20)
or better use this
std::codecvt

should work in c++11 - c++23

whenever you get such errors either go to stackoverflow.com
or better en.cppreference.com (and en.cppreference.com/w/c)

Go to top
Re: DevilutionX - Diablo 1
Just popping in
Just popping in


See User information
@SinanSam460

codecvt_utf8 was introduced in c++-11 but removed from c++-17 so
either build with std=c++-11 or change it to

std::codecvt<char32_tchar8_tstd::mbstate_t>
conversion between UTF-32 and UTF-8 (since C++20)
or better use this
std::codecvt<wchar_tcharstd::mbstate_t>

should work in c++11 - c++23

whenever you get such errors either go to stackoverflow.com
or better en.cppreference.com (and en.cppreference.com/w/c)

Go to top

  Register To Post
« 1 ... 3 4 5 (6) 7 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project