So, apparently some of my users can't play the Linux versions of my games, saying that I need to run dos2unix to convert files.
Anyone else have this problem with Linux users?
dos2unix.exe needed?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Re: dos2unix.exe needed?
Android is a Linux variant and dos2unix is not needed definitely.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3785
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: dos2unix.exe needed?
Why would Linux users require a Windows executable?
This sounds fishy
This sounds fishy
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
- Bryy
- Veteran
- Posts: 407
- Joined: Thu Dec 20, 2012 10:12 pm
- Completed: 30+ games so far
- Projects: Furry Shakespeare
- Organization: Stegalosaurus Game Development
- Location: Portage, MI
- Contact:
Re: dos2unix.exe needed?
Yeah, I've been trying to get more information. Now they tell me they can run it fine but they still need this?
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3785
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: dos2unix.exe needed?
A quick Googling gives me https://en.wikipedia.org/wiki/Unix2dos
It states that it is a CLI tool which converts *nix line endings, to Windows format line endings.
Using some simple logic, dos2unix is the reverse.
What editor do you use when scripting your game files?
From the sounds of it, it is using MLE (Mixed Line Endings), in other words the following:
Hello world.
My name is Imperf3kt
Is appearing to them, as the following instead
Hello world.\nMy name is Imperf3kt.
Some additional info:
https://en.wikipedia.org/wiki/Newline
It states that it is a CLI tool which converts *nix line endings, to Windows format line endings.
Using some simple logic, dos2unix is the reverse.
What editor do you use when scripting your game files?
From the sounds of it, it is using MLE (Mixed Line Endings), in other words the following:
Hello world.
My name is Imperf3kt
Is appearing to them, as the following instead
Hello world.\nMy name is Imperf3kt.
Some additional info:
https://en.wikipedia.org/wiki/Newline
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
- Bryy
- Veteran
- Posts: 407
- Joined: Thu Dec 20, 2012 10:12 pm
- Completed: 30+ games so far
- Projects: Furry Shakespeare
- Organization: Stegalosaurus Game Development
- Location: Portage, MI
- Contact:
Re: dos2unix.exe needed?
I'm using JEditor.
EDIT (1/20/2018):
Now someone else is telling me that I need to put:
In my code somewhere.
I've researched this and it seems like I need to put it in my .sh files, but nothing tells me WHERE in the file to put it.
I don't want to screw up and make something worse.
EDIT (1/20/2018):
Now someone else is telling me that I need to put:
Code: Select all
sed -i 's/\r//' SUPERARMY3.sh
I've researched this and it seems like I need to put it in my .sh files, but nothing tells me WHERE in the file to put it.
I don't want to screw up and make something worse.
- ThrashNeon
- Newbie
- Posts: 22
- Joined: Thu Dec 28, 2017 8:21 am
- Contact:
Re: dos2unix.exe needed?
They weren't telling you to put that into your code..Bryy wrote: ↑Mon Jan 08, 2018 1:27 am I'm using JEditor.
EDIT (1/20/2018):
Now someone else is telling me that I need to put:
In my code somewhere.Code: Select all
sed -i 's/\r//' SUPERARMY3.sh
I've researched this and it seems like I need to put it in my .sh files, but nothing tells me WHERE in the file to put it.
I don't want to screw up and make something worse.
They said that THEY ran that command on your SUPERARMY3.sh file to fix the line endings in that file. They used sed (a *nix utility) to replace the line endings.
You need to make sure the SUPERARMY3.sh file is saved with the correct line endings for linux. I suspect that you created this file in JEditor, and it saved the file with Windows line endings by default.
I would expect there is somewhere in Jeditor for you to check/change line endings in the file.
- Bryy
- Veteran
- Posts: 407
- Joined: Thu Dec 20, 2012 10:12 pm
- Completed: 30+ games so far
- Projects: Furry Shakespeare
- Organization: Stegalosaurus Game Development
- Location: Portage, MI
- Contact:
Re: dos2unix.exe needed?
I fixed it, thanks.
Who is online
Users browsing this forum: Ahrefs [Bot]