[Script] Automated Install for GZDoom Builder on Linux via PlayOnLinux

Looking for Resources for your mod/project? Want to share some of your creations so others can use them? Post them here!
Post Reply
User avatar
BlushBerry
 
Posts: 77
Joined: Tue Apr 26, 2016 11:12 pm
Clan: Nuclear Empire
Clan Tag: [NE]

[Script] Automated Install for GZDoom Builder on Linux via PlayOnLinux

#1

Post by BlushBerry » Mon Apr 30, 2018 1:37 am

This was tested on Ubuntu 16.04 and 18.04

You must disable ptrace scope or installing dotnet 3.5 WILL FAIL.

Enter this in your terminal to disable ptrace_scope.

Code: Select all

echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
To make these changes permanent type in your terminal

Code: Select all

sudo <your text editor here> /etc/sysctl.d/10-ptrace.conf
Scroll down to "kernel.yama.ptrace_scope = 1" and change the value to "0"

After disabling ptrace_scope all you have to do is download my latest PlayOnLinux script near the bottom of this post.

Code: Select all

Step 1: Open PlayOnLinux
Step 2: Click Tools > Run a Local Script
Step 3: Click Browse and select "Install_GZDoomBuilder.sh"

It will warn you that the script is not valid, That just means it was not approved by PlayOnLinux.
You are free to look at the code by opening it in your favourite text editor.

Step 4: Click "I agree" and click "Next"
Step 5: Sit back and relax and wait for it to install :)
Once everything is finished installing make sure you go into GZDoom Builders preferences and change your fonts to something that actually exists. Otherwise GZDoom Builder will crash.

Do not run GZDoom Builder until DotNet 3.5, SlimDX, and Visual C++ Redistributable 2008 have finished installing.

Also, DotNet 3.5 sp1 will hang at 170 MB's and attempt to re-establish connection, This is normal just wait and after 5 attempts it will continue downloading again.

If your mouse is escaping the window while you are in 3D Mode, Go into Configure on the Main PlayOnLinux window, select "GZDoom Builder" on the left, click the Miscellaneous tab, and change "Mouse warp override" to "force"

If you are getting crashes after placing down a sector, You need to go into preferences and change ALL fonts to be system native fonts such as "Noto Sans" or whatever you like.

And regarding the muddy fonts if you get them, I'm sorry I don't know how to fix this. I'll keep looking into it however!

Please let me know if you have any issues regarding the script by replying to this thread!

Download Latest Install_GZDoomBuilder_V2.sh


Previous Versions:
V1 (Release): https://drive.google.com/open?id=1zD35b ... kuBp-Kk775

Everything below in this spoiler is considered obsolete and only here if you don't trust the script and you'd rather do everything manually.
Spoiler: (Open)
In this guide I will provide you a step by step tutorial for running GZDoom Builder on Linux, I will be using Voyager GS 16.04 Which is basically just Xubuntu 16.04 which is basically just Ubuntu 16.04.

There are alot of steps but don't be overwhelmed, This is literally what I call a "Hand-Holding" guide to even cater to the newest users of linux to basically over simplify each step, telling you exactly what to do. Just follow each step and you'll do fine!


You will need PlayOnLinux and Wine installed before anything.

Type in your terminal:

Code: Select all

sudo apt install playonlinux wine
Pre-Requisite Files:
1. SlimDX .NET 2.0 -- https://slimdx.org/download.php
Direct Link: https://storage.googleapis.com/google-c ... 02012).msi

2. Microsoft Visual C++ 2008 Redistributable Package (x86) -- https://www.microsoft.com/en-us/downloa ... aspx?id=29
3. Microsoft .NET Framework 3.5 Service pack 1 -- https://www.microsoft.com/en-us/downloa ... x?id=25150
4. GZDoom Builder r2787 -- https://devbuilds.drdteam.org/doombuild ... r-r2787.7z (Would be best to put the contents of the 7z file into it's own folder for easy copying later)
Tip: I used this version of GZDoom Builder and it worked perfectly. You are free to try newer or older versions and experiment on your own.
Before starting you need to install wine 2.21-staging and disable ptrace scope.

Step 1. Click at the top of the window "Settings" and click "Manage Wine Versions"
Step 2.Make sure you are in the "Wine version (x86)" tab
Step 3. Scroll down and find the wine version "2.21-staging", highlight it and press the ">" button.
If it asks to install other things like "Mono" or "Microsoft Fonts" or "Gecko" Install them.

You must disable ptrace scope or installing dotnet 3.5 WILL FAIL.

Enter this in your terminal to disable ptrace_scope.

Code: Select all

echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
To make these changes permanent type in your terminal

Code: Select all

sudo <your text editor here> /etc/sysctl.d/10-ptrace.conf
Scroll down to "kernel.yama.ptrace_scope = 1" and change the value to "0"

Alright Let's get started!

Step 1: Click "Install a Program"
Step 2: Click "Install a non-listed program"
Step 3: Click "Next" until you get to the "Manual Installation Screen"
Step 4: When you get to the "Manual Installation" click "Next"
Step 5: Click "Install a program in a new virtual drive"
Step 6: Type in "GZDoomBuilder" in the text field and click "Next"
Step 7: Click "Use another version of wine" and "Configure Wine" and "Install some libraries" and click "Next"
Step 8: Select "2.21-staging" and click "Next"
Step 9: Select "32 bits windows installation" and click "Next"
Step 10: Make sure Windows Version is "Windows 7"
Step 11: Click the "Staging" Tab and check "Enable CSMT for better graphic performance",click "Apply" and then "OK"
Step 12: Check the following to be installed. (This Step may take a while, Be patient and wait for everything to install.)

Code: Select all

a. POL_Install_d3dx9
b. POL_Install_d3dx9_43
c. POL_Install_directx9
d. POL_Install_dotnet20
e. POL_Install_dotnet20sp1
f. POL_Install_dotnet20sp2
g. POL_Install_dotnet30
h. POL_Install_dotnet30sp1
i. POL_Install_gdiplus

Step 13: It will now say "Please select the install file to run." click cancel.
Step 14: Click "Configure" and click your Prefix on the side that says "GZDoomBuilder"
Step 15: Click "Miscellaneous" and then click "Open virtual drive's directory"
Step 16: Navigate into "drive_c"
Step 17: Place the folder you extracted GZDoom Builder to inside "drive_c"
Step 18: Place "vcredist_x86.exe", "dotnetfx35.exe" into "drive_c"
Step 19: Head back to the "PlayOnLinux configuration" window and click the "General" tab
Step 20: Click "Make a new shortcut from this virtual drive"
Step 21: Click on "vcredist_x86.exe" and click "Next"
Step 22: Leave the name as default and click "Next"
Step 23: Click on "dotnetfx35.exe" and click "Next"
Step 24: Leave the name as default and click "Next"
Step 25: Click "Cancel"
Step 26: Close the "PlayOnLinux configuration" window
Step 27: Double click on "vcredist_x86"
Step 28: Click next in the "Microsoft Visual C++ 2008 Redistributable Setup" Window.
Step 29: Click "I have read and accept the license terms" and click "Install >"
Step 30: It should be successfully installed. Click "Finish"
Step 31: Double click "dotnetfx35" setup should start.
Step 32: Click "I have read and ACCEPT the terms of License Agreement"
Step 33: Click "Install >" (This may take a while, if it tries to re-establish connection DONT PANIC, just wait It will pull through. IF you get disconnected due to internet issues and the install fails, Run the exe again and start over from step 31, Installing takes a bit too.)
Step 34: Click "Exit"

Step 35: Click "Configure" on the main "PlayOnLinux" window
Step 36: Select the "GZDoomBuilder" Prefix on the left and then go to the "Miscellaneous" Tab
Step 37: Click "Run a .exe file in this virtual drive"
Step 38: Navigate to where you downloaded ""SlimDX SDK (January 2012).msi" and open that file.
Step 39: Click "Next"
Step 40: Accept the Liscense Agreement and keep clicking "Next" until you are met with the "Install" Button.
Step 41: Click "Install". Once the setup has completed click "Finish"
Step 42: Go back into the the main "PlayOnLinux" Window and click "Configure"
Step 43: Select your virtual drive on the left and click the "General" Tab, Then click "Make a new shortcut from this virtual drive"
Step 44: Select "Builder.exe" and click "Next"
Step 45: Name it "GZDoom Builder" and click "Next", It will ask you to make another shortcut if you want. Just click "Cancel"
Step 46: Go into your main PlayOnLinux Window and double click "GZDoom Builder" (Ignore the warning about the updater not having permissions if you have it.)

Step 47: Go to "Tools > Preferences" and Change the "Text Labels" font to "Noto Sans" (Or whichever font you want to use that's native on your system)
Step 48: Go to the "Script Editor" Tab and change the script editor font to "Noto Sans" (Or again, whichever font you want to use that's native on your system)

It's crucial you change the font otherwise GZDoom Builder will crash when trying to do something with in the editor (Eg. Create a sector)

Finally we are done! These are the steps I did to get GZDoom Builder working on linux.

If I messed up anything within this guide please let me know!
Last edited by BlushBerry on Thu Sep 13, 2018 6:41 pm, edited 24 times in total.

User avatar
Sean
FNF Team
Posts: 873
Joined: Thu Jan 16, 2014 9:09 pm
Location: England
Clan Tag: [TSPG]
Contact:

Re: [Script] Automated Install for GZDoom Builder on Linux via PlayOnLinux

#2

Post by Sean » Wed May 02, 2018 3:05 pm

Wine has a D3D9 implementation competent enough to run GZDB now? Niiiiiice.

Now if only DXVK could run Elite Dangerous...

Code: Select all

<Decay> csnxs try being less bitter and actually helpful to the community, thanks


User avatar
BlushBerry
 
Posts: 77
Joined: Tue Apr 26, 2016 11:12 pm
Clan: Nuclear Empire
Clan Tag: [NE]

Re: [Script] Automated Install for GZDoom Builder on Linux via PlayOnLinux

#3

Post by BlushBerry » Sat May 05, 2018 1:27 am

I actually had the wrong link set for V2, That was still linking to V1. If you downloaded V2 Thinking it was actually V2 It wasn't Re-download if the one you downloaded diddn't work.

User avatar
BlushBerry
 
Posts: 77
Joined: Tue Apr 26, 2016 11:12 pm
Clan: Nuclear Empire
Clan Tag: [NE]

Re: [Script] Automated Install for GZDoom Builder on Linux via PlayOnLinux

#4

Post by BlushBerry » Thu Sep 13, 2018 6:42 pm

I've added another troubleshooting tip regarding crashes related to making new sectors

Code: Select all

If you are getting crashes after placing down a sector, You need to go into preferences and change ALL fonts to be system native fonts such as "Noto Sans" or whatever you like.
Also to note this has been now tested on 18.04 and is still working successfully.

StevenC21
New User
Posts: 2
Joined: Mon Aug 20, 2018 4:45 am

Re: [Script] Automated Install for GZDoom Builder on Linux via PlayOnLinux

#5

Post by StevenC21 » Fri Sep 14, 2018 12:59 am

Hey, since I see you are still working on this... I figured I might ask.

Do you happen to have an updated version for GZDoom Builder Bugfix?

User avatar
BlushBerry
 
Posts: 77
Joined: Tue Apr 26, 2016 11:12 pm
Clan: Nuclear Empire
Clan Tag: [NE]

Re: [Script] Automated Install for GZDoom Builder on Linux via PlayOnLinux

#6

Post by BlushBerry » Sat Sep 22, 2018 12:38 am

StevenC21 wrote:
Fri Sep 14, 2018 12:59 am
Hey, since I see you are still working on this... I figured I might ask.

Do you happen to have an updated version for GZDoom Builder Bugfix?
You should be able to just update it through GZDoom Builder itself. if not I can make an updated script for it. Can you provide me a direct link to the updated bugfix?

User avatar
Sean
FNF Team
Posts: 873
Joined: Thu Jan 16, 2014 9:09 pm
Location: England
Clan Tag: [TSPG]
Contact:

Re: [Script] Automated Install for GZDoom Builder on Linux via PlayOnLinux

#7

Post by Sean » Sat Sep 22, 2018 9:37 am

Polygon wrote:
Sat Sep 22, 2018 12:38 am
Can you provide me a direct link to the updated bugfix?
https://devbuilds.drdteam.org/gzdbbf/

GZDB-Bugfix is a fork of GZDB that's actually maintained.

Code: Select all

<Decay> csnxs try being less bitter and actually helpful to the community, thanks


StevenC21
New User
Posts: 2
Joined: Mon Aug 20, 2018 4:45 am

Re: [Script] Automated Install for GZDoom Builder on Linux via PlayOnLinux

#8

Post by StevenC21 » Mon Sep 24, 2018 10:58 pm

The reason I asked in the first place was because GZDoom Builder Bugfix has updated dependencies, which Wine has some trouble with.

Was hoping you had some insight on this.

Post Reply