Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Thu Mar 28, 2024 4:47 pm
All times are UTC + 0
RA2YR on Ubuntu 16.04/Winetrick 1.6.2 - Known bugs and fixes
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [8 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
SteamsDev
Soldier


Joined: 12 Mar 2017

PostPosted: Fri Jul 07, 2017 12:59 am    Post subject:  RA2YR on Ubuntu 16.04/Winetrick 1.6.2 - Known bugs and fixes Reply with quote  Mark this post and the followings unread

Since I've had to switch to using RA2YR on Ubuntu 16.04/Wine 1.6.2, I thought I'd present my finds here so that people can use them for the future. If you want you can help out too.

[Bug] Animations do not appear and gameplay is slow:
Solution: In the default wineprefix, select Change Settings, check "ddr=opengl" and click OK. Restart the game and check if it worked.

[Bug] Pause Buttons are invisible
Solution: In your RA2 directory, open RA2.INI for RA2 or RA2MD.INI for Yuri's Revenge and put in the following:

[Video]
AllowHiResModes=yes
AllowVRAMSidebar=yes
VideoBackBuffer=no
ScreenWidth=800
ScreenHeight=600
StretchMovies=no

Restart the game and see if it worked.

[Bug] Cursor flickers when playing game
Note: I know it has to do with changing the graphics to 16-bit, however I haven't figured out how to do it yet.

[Bug] Cursor moves like crazy when you move mouse
NOT SOLVED YET
Note: It may have to do with the "Cursor flickering" bug, but it only happens on screen resolutions higer than 800x600.

That's about all I got. Feel free to add more to this or help try to solve some of these problems.

_________________
"I'm grade-A, 100%, prime-cut final boss! I'm going to take over the world any day now!"
-Bowser, Super Paper Mario

Official scripting leader of BR Studios
Check out our ModDB: http://www.moddb.com/company/progen-group
Yuri's Revenge: CnCD2K: http://www.moddb.com/mods/red-alert-2-yuris-revenge-cncd2k-mod

Last edited by SteamsDev on Fri Jul 07, 2017 11:31 pm; edited 2 times in total

Back to top
View user's profile Send private message
PussyPus
Commander


Joined: 14 Jul 2015
Location: Egypt

PostPosted: Fri Jul 07, 2017 1:31 am    Post subject: Reply with quote  Mark this post and the followings unread

I am the 1st viewer! i thoght it should be in tutorial forum.

_________________
If you are a MetalHead (Heavy Metal Fan) and don't want to be a metalhead, Just remove your metal ball from your head. �:p .

Back to top
View user's profile Send private message ModDB Profile ID Skype Account
SteamsDev
Soldier


Joined: 12 Mar 2017

PostPosted: Fri Jul 07, 2017 1:33 am    Post subject: Reply with quote  Mark this post and the followings unread

Oh. I didn't know so I decided to post it here, since it had relation to RA2.

_________________
"I'm grade-A, 100%, prime-cut final boss! I'm going to take over the world any day now!"
-Bowser, Super Paper Mario

Official scripting leader of BR Studios
Check out our ModDB: http://www.moddb.com/company/progen-group
Yuri's Revenge: CnCD2K: http://www.moddb.com/mods/red-alert-2-yuris-revenge-cncd2k-mod

Back to top
View user's profile Send private message
SteamsDev
Soldier


Joined: 12 Mar 2017

PostPosted: Fri Jul 07, 2017 12:15 pm    Post subject: Reply with quote  Mark this post and the followings unread

I went ahead and ran a commandline shell for a mod in RA2YR. Here's what Wine had to say:
Code:
Z:\home\steamsdev\ILRBeta>Syringe "gamemd.exe"  
0.000000
fixme:advapi:EventRegister {5eec90ab-c022-44b2-a5dd-fd716a222a15}, 0xe01123, 0xeac770, 0xeac788
err:ole:TLB_ReadTypeLib Loading of typelib L"RA2.TLB" failed with error 1006
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
fixme:win:EnumDisplayDevicesW ((null),0,0x33e8f4,0x00000000), stub!
fixme:winediag:AUDDRV_GetAudioEndpoint Winepulse is not officially supported by the wine project
fixme:winediag:AUDDRV_GetAudioEndpoint For sound related feedback and support, please visit http://ubuntuforums.org/showthread.php?t=1960599
fixme:d3d_surface:surface_cpu_blt Filter WINED3D_TEXF_LINEAR not supported in software blit.
fixme:d3d_surface:surface_cpu_blt Filter WINED3D_TEXF_LINEAR not supported in software blit.
fixme:d3d_surface:surface_cpu_blt Filter WINED3D_TEXF_LINEAR not supported in software blit.
fixme:ver:GetCurrentPackageId (0xd0ee9d8 (nil)): stub
fixme:d3d_surface:surface_cpu_blt Filter WINED3D_TEXF_LINEAR not supported in software blit.
fixme:d3d_surface:surface_cpu_blt Filter WINED3D_TEXF_LINEAR not supported in software blit.
Memory pool destroyed but not all memory blocks freed! 1 remain.
fixme:advapi:EventUnregister deadbeef: stub
fixme:advapi:EventUnregister 0: stub


This is basically what to expect when running vanilla RA2YR and mods for it. I recommend that if you do want to do mods, use Ares, because wine cmd can run that fine. I'm not sure about NPatch or mods that run straight from game.exe or gamemd.exe.

_________________
"I'm grade-A, 100%, prime-cut final boss! I'm going to take over the world any day now!"
-Bowser, Super Paper Mario

Official scripting leader of BR Studios
Check out our ModDB: http://www.moddb.com/company/progen-group
Yuri's Revenge: CnCD2K: http://www.moddb.com/mods/red-alert-2-yuris-revenge-cncd2k-mod

Back to top
View user's profile Send private message
SteamsDev
Soldier


Joined: 12 Mar 2017

PostPosted: Fri Jul 21, 2017 1:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

I've discovered another bug:
[Bug] Game crashes when custom voxel/SHP is included in my RA2 Folder.
Solution: The voxel/SHP didn't extract completely. You probably more than likely got a message from Ubuntu's extractor that said "parsing file is unsupported"  One option is to find a different ZIP/RAR Extractor on the Winetricks database (for example 7-Zip), install it and use it to extract the files. If they are extracted successfully through 7-zip or whatever else you use, you're good to go!

_________________
"I'm grade-A, 100%, prime-cut final boss! I'm going to take over the world any day now!"
-Bowser, Super Paper Mario

Official scripting leader of BR Studios
Check out our ModDB: http://www.moddb.com/company/progen-group
Yuri's Revenge: CnCD2K: http://www.moddb.com/mods/red-alert-2-yuris-revenge-cncd2k-mod

Back to top
View user's profile Send private message
4StarGeneral
General


Joined: 14 Sep 2006
Location: Limbo

PostPosted: Fri Jul 21, 2017 9:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

I'm quite behind in Ubuntu distros, but you would have to match the color depth that Ubuntu itself is using for it to remove the flickering (same as windows). Something like
Code:
sudo nano /etc/X11/xorg.conf
like I said, behind in distros just search for xorg.conf. Change the default color depth from 24/32 to 16, save it, and there you go.

The cursor moving crazy bug is most likely because it's trying to emulate the changed resolution without adjusting the mouse movement to match, so the mouse is moving like it's at 800x600 (or is YR default 1024?). Not sure if you can fix that in Wine.

I've tried running RA2 smoothly before and I just gave up after hours of annoyance. The better choice would be to just throw Windows XP on a Virtual Machine and run it that way. I've never actually USED a VM on Ubuntu, but a regular google search output this.

_________________
"Don't beg for things; Do it yourself or you'll never get anything."

Back to top
View user's profile Send private message Send e-mail YouTube User URL
FurryQueen
General


Joined: 24 Jul 2010
Location: Liyue

PostPosted: Fri Jul 28, 2017 7:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

Game runs fine on an XP VM, even without Direct3D. I recommend that over trying to use WINE.

_________________
KGR | AT
AZUR
Discord: theastronomer1836
Steam

Back to top
View user's profile Send private message Skype Account
SteamsDev
Soldier


Joined: 12 Mar 2017

PostPosted: Sun Jul 30, 2017 11:30 am    Post subject: Reply with quote  Mark this post and the followings unread

FurryQueen wrote:
Game runs fine on an XP VM, even without Direct3D. I recommend that over trying to use WINE.

Not really in some cases. To use a virtual machine you need to configure it just right to get it to work properly, which on some older machines is hard to do. I do have a Win10 VM myself and so far have had some of the same problems as when I had an older version of Wine. Specifically, the animations are delayed on the executable's main menu and you really can only see the backdrop of the screen.
I did recently have an update on my wine that bumped it up to 1.8.7, and some of the major bugs in YR were fixed, such as the "cursor moving crazy" bug. So I guess some of the cases may be outdated versions of Wine.
I have also had my game crash due to sprite loading/unloading problems. Ones such as:
Code:
err:d3d:resource_unload Resource 0x179380 is being unloaded while mapped.

_________________
"I'm grade-A, 100%, prime-cut final boss! I'm going to take over the world any day now!"
-Bowser, Super Paper Mario

Official scripting leader of BR Studios
Check out our ModDB: http://www.moddb.com/company/progen-group
Yuri's Revenge: CnCD2K: http://www.moddb.com/mods/red-alert-2-yuris-revenge-cncd2k-mod

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [8 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1581s ][ Queries: 11 (0.0089s) ][ Debug on ]