Jump to content
Sign in to follow this  
OptimusShepard

AMD Ryzen, Threadripper user, read before posting

Recommended Posts

The current alpha 23b has some problems with the new Ryzen CPUs.

First problem ist the correct hardware detection. This leads to an crash by starting the game.

Second problem are random slowdowns and speedups while playing the game.

Both problems will be addressed with the next alpha 24. Until than the game has to be individually patched. Follow the instructions below.

 

Windows:

Replace the files of

%localappdata%\0 A.D. alpha\binaries\system

by the files of system.zip

system.zip

 

Linux:

Some of the distribution like Arch have already backported the patch for the first problem.

To solve the second problem, or if your distribution hasn't backported, you need to build the game by yourself.

https://trac.wildfiregames.com/wiki/BuildInstructions

https://trac.wildfiregames.com/wiki/BuildInstructionsGettingTheCode

https://code.wildfiregames.com/D2353

https://code.wildfiregames.com/D2726

The revision number of a23b is r21946.

 

Keep in mind that the state of the second patch is currently experimental, as we still investigating this problem together with AMD. If you have any further problems, feel free to open an new thread or to post on an existing thread. Every feedback is welcome.

Edited by OptimusShepard

Share this post


Link to post
Share on other sites
56 minutes ago, kokomaestro said:

Still not working for me unfortunately...

What happens when you replace the contents of the folder?

Share this post


Link to post
Share on other sites

Hm, as no one else have a Threadripper, no one can debug it. I have my self only a Ryzen. But maybe we could fix it anyway.

The crashlog you posted in the other thread, was that the first one? With an Ryzen you can press continue (I think 3 times) until you are in the windowed game. Pressing continue will oberwrite the other crashreports.

The first crash shows me (in my machine) something like "cache.validate". Do you get something like that, or did you break, so this was your first report?

  • Like 1

Share this post


Link to post
Share on other sites

Hey Friends!

I have tried the instructions above but neither the commands failed nor I couldn't load the files.

There is not much on the internet about this topic and I have read (I think) all search results I could find.

I changed my CPU to a Ryzen 5 3600 yesterday and yeah.... You probably know what happened. I updated the kernel of my Ubuntu 20 and installed the AMDgpu driver just in case but the problem  is apparently the CPU.
I can run the game 0AD after getting the mentioned crash report and it works as i tested it for a couple minutes on a big saved map but its only in windowed mode and no way to get fullscreen as before the CPU change.

I want to make a 0AD LAN "party" on Saturday so it would be nice to get it fixed.

Please give me an easy advice/manual for a beginner though I am not but still having probs understanding developer language sometimes.

 

Thanks a lot and cu

Screenshot from 2020-06-24 18-10-47.png

Edited by Kouper

Share this post


Link to post
Share on other sites

Hey @Kouper

Sorry you are experiencing such issues. to fix them you will have to compile the game yourself. To do so you need to follow the instructions here. You will need to install a bunch of dependencies, and to download the source code like shown here. To be able to play with your fellow friends you will need to checkout a special revision. You might want to do both steps at once because it's gonna take some time.

$ svn co -r21946 https://svn.wildfiregames.com/public/ps/trunk/ 0ad

then you'll need to patch the game using the following patch patch.diff Copy it in the 0ad folder.

$ cd 0ad
$ patch -p0 < patch.diff

then after you installed the dependencies and applied the patch you can run a script such as this one

#!/bin/sh
cd "0ad"
svn up
jobs=`nproc`
jobs=`expr $jobs + 1`
SVN_REV=`svnversion -n`
echo L\"${SVN_REV}-dev\" > build/svn_revision/svn_revision.txt
echo "Updating workspaces with $jobs jobs..."
cd build/workspaces
sh update-workspaces.sh -j$jobs > ../../../build-libs.log 
cd gcc
echo "Building pyrogenesis with $jobs jobs..."
make CXXFLAGS="-std=c++11 -march=native" -j$jobs  > ../../../../build.log
cd ../../../../

 

That should do the trick. Be patient and take your time, and you should have a working game in no time.

 

 

  • Confused 1

Share this post


Link to post
Share on other sites

It worked for me before I get the error when starting the game thanks.

this is the specification of my pc  RyZEN 5 3600 6 CORE 3.59GHZ

  • Like 1

Share this post


Link to post
Share on other sites

Hey again,

I have tried again the instructions but get either the massage "command not found" or "E: Unable to locate package" and installing the 0ad-dbgsym_0.0.24~r23742-0ubuntu1~20.04~wfg0_amd64.ddeb or 0ad-dbgsym_0.0.24~r23742-0ubuntu1~20.04~wfg0_arm64.ddeb didn't work either. :(

I tried the fix for Windows and it was way toooo easy. Just downloading a folder, copying and replace the old one and DONE! Isn't there any similar solution for Ubuntu 20.04??? Because first, I love LINUX and secondly I realized Windows didn't' work as well as Ubuntu.

Haha live could be so easy, but its not xD

THANKS ANYWAY!!

Edited by Kouper

Share this post


Link to post
Share on other sites
1 hour ago, Kouper said:

Hey again,

I have tried again the instructions but get either the massage "command not found" or "E: Unable to locate package" and installing the 0ad-dbgsym_0.0.24~r23742-0ubuntu1~20.04~wfg0_amd64.ddeb or 0ad-dbgsym_0.0.24~r23742-0ubuntu1~20.04~wfg0_arm64.ddeb didn't work either. :(

I tried the fix for Windows and it was way toooo easy. Just downloading a folder, copying and replace the old one and DONE! Isn't there any similar solution for Ubuntu 20.04??? Because first, I love LINUX and secondly I realized Windows didn't' work as well as Ubuntu.

Haha live could be so easy, but its not xD

THANKS ANYWAY!!

Where did you get those packages from?

Good to know that the fix also work on ThreadRippers!

Share this post


Link to post
Share on other sites

There is no date yet. Note that the actual fix for AMD CPU is not merged yet.

Share this post


Link to post
Share on other sites

Yeah, the last one was made by me :D So I'd rather not include it. Also it mostly patches windows.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...