Pages: 123 »
Posted on 07-04-17, 08:04 pm (rev. 6 by customlevelfan78 on 08-13-17, 09:09 pm)
The veteran

Posts: 7/425
Since: 07-04-17

Last post: 13 days
Last view: 6 days
This is the original post made by Tempus and recovered from RVLution. I added a few edits to the original post, while 9211tr made the Windows and Linux tutorials, props to them !

Windows 10 (made by 9211tr) :

Mac OS X (made by tempus) :

Linux (made by 9211tr) :

- - - - - - - - - - - - - - - - - - - - -

And lastly, megazig's shell script (python installs as python2). It doesn't work, but i'm keeping it for archive purposes :

_________________________
Check out my YT here
Posted on 07-04-17, 09:10 pm
Normal user


Posts: 10/30
Since: 06-30-17

Last post: 195 days
Last view: 111 days
I like how you help giving this board more content
Posted on 07-04-17, 09:14 pm
The veteran

Posts: 9/425
Since: 07-04-17

Last post: 13 days
Last view: 6 days
Yeah, i wanted to do it for a long time (was going to do it on MMM but we transferred here) but never had the chance until now (no free time and no Wii).
_________________________
Check out my YT here
Posted on 07-08-17, 05:37 pm (rev. 3 by 9211tr on 07-30-17, 11:14 pm)

Cobrat
An average person.
îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþ

Posts: 21/658
Since: 07-07-17

Last post: 8 days
Last view: 4 hours
Does anyone have the tutorial of this about getting the NewerSMBW source to work/running on an Debian/Ubuntu Linux machine?


EDIT: Also you don't need to type sudo <command> or anything like that multiple times on any command if a command errors out.
You can simply type:
su
in the terminal and enter password when prompted to curcumivent all sudo commands (if you're on Linux), so you won't have to type sudo <command> everytime.

If you're on Mac or Ubuntu Linux, su doesn't work, so you'll need to type:
sudo -i
instead.
_________________________
Don't expect me to be very active here, since I have plans, and many other things in my life.
Posted on 07-08-17, 05:39 pm
The veteran

Posts: 43/425
Since: 07-04-17

Last post: 13 days
Last view: 6 days
There was a post on RHC but i couldn't retrieve it.
_________________________
Check out my YT here
Posted on 07-08-17, 05:43 pm (rev. 1 by 9211tr on 07-08-17, 05:45 pm)

Cobrat
An average person.
îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþ

Posts: 22/658
Since: 07-07-17

Last post: 8 days
Last view: 4 hours
No, the Debian/Ubuntu Linux machine tutorial, was on RVLution (and I was browsing it as a guest; IIRC, I believe Grop is the one who posted it)...

Also did you look back on my previous post (I edited to include about curcumvienting all the sudo commands, so you don't have to type sudo <command> everytime if any command errors out).
_________________________
Don't expect me to be very active here, since I have plans, and many other things in my life.
Posted on 07-08-17, 05:52 pm
The veteran

Posts: 45/425
Since: 07-04-17

Last post: 13 days
Last view: 6 days
Didn't see it. I'll put it in, thx.
_________________________
Check out my YT here
Posted on 07-08-17, 08:20 pm
Normal user


Posts: 24/55
Since: 05-25-17

Last post: 150 days
Last view: 117 days
The one on RVLution never worked for me on Ubunto at all
Posted on 07-08-17, 10:48 pm (rev. 1 by 9211tr on 07-08-17, 11:08 pm)

Cobrat
An average person.
îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþ

Posts: 23/658
Since: 07-07-17

Last post: 8 days
Last view: 4 hours
Then how come MrRean got it to work on his Ubuntu Linux machine?
_________________________
Don't expect me to be very active here, since I have plans, and many other things in my life.
Posted on 07-09-17, 02:58 pm
Normal user


Posts: 25/55
Since: 05-25-17

Last post: 150 days
Last view: 117 days
Dunno

I could ask him or Roadrunner and see if Icould get the thread from RVLution itself
Posted on 07-09-17, 04:20 pm
temp

Posts: 12/67
Since: 06-07-17

Last post: 52 days
Last view: 33 days
I remember Gota7 making something for compiling the newer sources for Linux.
Posted on 07-09-17, 05:27 pm

Cobrat
An average person.
îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþ

Posts: 27/658
Since: 07-07-17

Last post: 8 days
Last view: 4 hours
Dunno

I could ask him or Roadrunner and see if Icould get the thread from RVLution itself
Probably, MrRean also has it, too.
But you're going to have to figure out another way on how to contact him (RoadrunnerWMC or MrRean) to get it, since I don't see them anywhere on the member list on the forums here.
_________________________
Don't expect me to be very active here, since I have plans, and many other things in my life.
Posted on 07-09-17, 07:49 pm
Normal user


Posts: 26/55
Since: 05-25-17

Last post: 150 days
Last view: 117 days
MrRean goes by Shibboleet (or shibbo for short)
Posted on 07-09-17, 08:37 pm
The veteran

Posts: 49/425
Since: 07-04-17

Last post: 13 days
Last view: 6 days
But there is an user named shibbo here
_________________________
Check out my YT here
Posted on 07-31-17, 08:25 pm (rev. 1 by 9211tr on 07-31-17, 08:25 pm)

Cobrat
An average person.
îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþ

Posts: 119/658
Since: 07-07-17

Last post: 8 days
Last view: 4 hours
Even though I wasn't able to retrieve Grop's tutorial on RVLution on how to compile NewerSMBW sources on Debian/Ubuntu Linux, unexpectedly, I was able to remember the steps on how to do it. Although the steps I remember are different from what Grop has posted, they should work perfectly.

Also as I mentioned before, you can simply type:
su
in the terminal and enter password when prompted to curcumivent all sudo commands, so you won't have to type sudo <command> everytime. If you're on Ubuntu Linux,
su
doesn't work, so you'll need to type
sudo -i
instead.

NOTE: If no text is shown when typing the password, it does not mean it's not working, the text is hidden so in case if anyone is watching the computer screen behind your back, they won't see your password.

Installing GCC:
Open the terminal (if you haven't) and type:
cd / apt-get install -y gcc apt-get install -y make

Installing CMake:
Open the terminal (if you haven't) and type:
apt-get install -y cmake

Installing Subversion (SVN):
Open the terminal (if you haven't) and type:
apt-get install -y subversion

Installing devkitPPC:
You'll need to check the architecture of your Debian/Ubuntu Linux machine.
Open the terminal (if you haven't), and type:
uname -m
Type this in next (ONLY IF uname -m is i386 or i686):
wget -O devkitPPC.tar.bz2 http://ufpr.dl.sourceforge.net/project/devkitpro/devkitPPC/devkitPPC_r29-1/devkitPPC_r29-1-i686-linu<wbr>x.tar.bz2
Type this in next (ONLY IF uname -m is x86_64):
wget -O devkitPPC.tar.bz2 http://ufpr.dl.sourceforge.net/project/devkitpro/devkitPPC/devkitPPC_r29-1/devkitPPC_r29-1-x86_64-li<wbr>nux.tar.bz2

Afterwards, in the terminal, type:
tar -xvjf devkitPPC.tar.bz2 -C / rm devkitPPC.tar.bz2

Or you can manually download devkitPPC here: https://sourceforge.net/projects/devkitpro/files/devkitPPC/devkitPPC_r29-1/
Get the i686-linux download (if uname -m is i386 or i686).
Get the x86_64-linux download (if uname -m is x86_64).
And manually extract the devkitPPC .tar.bz2 file to the / directory.

Installing PyElfTools/PyYAML:
Open the terminal (if you haven't) and type:
apt-get install -y python-pip pip install pyelftools pip install pyyaml

Downloading the Newer Sources:
Open the terminal (if you haven't) and type:
svn co https://github.com/Treeki/NewerSMBW/branches/no-translations /NewerSMBW-no-translations
Or you can manually download the Newer Sources here: https://github.com/Treeki/NewerSMBW/tree/no-translations
And download the ZIP file and extract it to the / directory.

Downloading, Patching, and compiling Clang/LLVM (rev. 184655):
Open the terminal (if you haven't) and type:
svn co -r 184655 http://llvm.org/svn/llvm-project/llvm/trunk /llvm svn co -r 184655 http://llvm.org/svn/llvm-project/cfe/trunk /llvm/tools/clang svn co -r 184655 http://llvm.org/svn/llvm-project/compiler-rt/trunk /llvm/projects/compiler-rt cd /llvm/tools/clang patch -p0 -i /NewerSMBW-no-translations/ClangPatches/clang_cw_patches_r184655.diff mkdir /NewerSMBW-LLVM mkdir /llvm/build cd /llvm/build cmake -DLLVM_DEFAULT_TARGET_TRIPLE=powerpc-unknown-unknown-unknown -DPYTHON_EXECUTABLE=/usr/bin/python -DLLVM_TARGETS_TO_BUILD="PowerPC" -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_INCLUDE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/NewerSMBW-LLVM" /llvm make make install cd / rm -r /llvm cd /NewerSMBW-no-translations/Kamek/ mv src/heapbar.S src/heapbar2.S sed -e '129d' src/heapbar2.S > src/heapbar.S rm src/heapbar2.S mkdir processed mkdir NewerASM

Compiling Newer:
At any time, open the terminal (if you haven't) and type:
su cd /NewerSMBW-no-translations/Kamek python tools/mapfile_tool.py python tools/kamek.py NewerProjectKP.yaml --show-cmd --no-rels --use-clang --gcc-type=/devkitPPC/bin/powerpc-eabi --llvm-path=/NewerSMBW-LLVM/bin
NOTE: If you're on Ubuntu, make sure to use
sudo -i
instead, as
su
doesn't work on Ubuntu.


Finishing:
This will output a number of .bin files into the NewerASM folder. You'll need to rename them to their NewerSMBW readable names, so open the terminal (if you haven't) and type:
cd /NewerSMBW-no-translations/Kamek/NewerASM/ wget https://www.dl.dropboxusercontent.com/s/jx4q6dfhay2x8gt/RenameNewerBinFiles.sh chmod +x RenameNewerBinFiles.sh
Once you're done with that, at any time, simply type in the terminal (and again, if you're on Ubuntu, make sure to use sudo -i instead, as su doesn't work on Ubuntu):
su cd /NewerSMBW-no-translations/Kamek/NewerASM/ ./RenameNewerBinFiles.sh
and then go into the renamed folder in the NewerASM folder, then plop the renamed .bin files into the /NewerRes folder in the Newer pack, and you should be sailing! If you want to automate the process further, take a look at the makeNewerKP file in the Kamek folder in a text editor. Change the commands at the top to match the ones in the code block in the "Compiling Newer:" section, and change the directory paths below to output directly to your test folder destination. You can integrate the script with wit and Dolphin, or with RiiFs to get ultra speedy testing runs.
_________________________
Don't expect me to be very active here, since I have plans, and many other things in my life.
Posted on 07-31-17, 09:01 pm
The veteran

Posts: 97/425
Since: 07-04-17

Last post: 13 days
Last view: 6 days
Added, also good memory.
_________________________
Check out my YT here
Posted on 07-31-17, 09:03 pm

Cobrat
An average person.
îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþ

Posts: 120/658
Since: 07-07-17

Last post: 8 days
Last view: 4 hours
Thanks.
_________________________
Don't expect me to be very active here, since I have plans, and many other things in my life.
Posted on 08-03-17, 03:11 am

Cobrat
An average person.
îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþ

Posts: 134/658
Since: 07-07-17

Last post: 8 days
Last view: 4 hours
OK, finally there is a way to get the NewerSMBW sources to compile on Windows (although it needs Windows 10).

There's this feature called WSL (Windows Subsystem for Linux) on Windows 10, which brings a Linux subsystem to Windows (AND NO, THIS IS NOT a virtual machine, a compiled Linux emulator {like Cygwin}, or anything--this is A REAL subsystem on Windows).

WARNING: The WSL subsystem is currently in beta, so some things may work (but probably improperly), some things may not work at all.

If something doesn't work or works improperly (and you've updated your WSL subsystem via "cmd" {by typing lxrun /update} and you've already asked me for help and I wasn't able to help you out), you're free to report it to Microsoft on Github: https://github.com/Microsoft/BashOnWindows/ (the Github page DOES NOT link to the source code of the WSL subsystem).

Plus, the WSL subsystem is only available/compatible on the 64-bit version of Windows 10 (and it requires that your machine also has an 64-bit [x64-based] processor/CPU, too!). However, I was able to successfully compile the NewerSMBW sources on the WSL subsystem and I decided to write my own tutorial here in this thread for you all.


Requirements

- Windows 10 Anniversary Update BUILD 14393.0, Version 1607 (or higher).

- The 64-bit (x64 or x86-64) version of Windows 10 + an x64-based processor on your computer, as the WSL subsystem requires this in order for it to enable, install, and work (as I stated before). It WILL NOT work on the 32-bit (x32 or x86) version of Windows 10 and/or an x86-based processor on your computer.

- An internet connection.

- At least 22 GB of free disk space.

- ESTIMATED time required: 2 or 3 hours.
(The reason why I say "ESTIMATED" is because the time required may be different for you, depending on your computer specs, internet connection speed, etc.)

HINT: To tell if your Windows 10 PC is 64-bit (and is running Anniversary Update BUILD 14393.0 Version 1607 or higher, and on an x64-based processor), go to the Start Menu --> Settings --> System --> About:

If your PC is below build 14393.0 Version 1607, then I'd suggest you update your computer to the newest build.
Since mine is build 14393.1480 Version 1607 (as shown in the photo above), it is higher than 14393.0 Version 1607, so I'm good to go.


Tutorial

Installing/Enabling the WSL subsystem:

STEP 1: Go to Start Menu --> Settings --> Update & Security --> For Developers. Set it to Developer Mode.

STEP 2: Go to the Cortana Menu (the circle icon near the Start Menu icon) and in the search box, type Turn Windows features on or off. Check the box that says Windows Subsystem for Linux (Beta) and click OK.

STEP 3: Once you're done enabling the WSL subsystem, restart your computer when prompted.

STEP 4: After restarting (if prompted), go to the Cortana Menu (the circle icon near the Start Menu icon) and in the search box type
bash
to launch the WSL subsystem.

STEP 5: Read the license agreement, and if you accept it, type
y
(for "Yes", to accept), and it will install.
ESTIMATED: This may take about 10 minutes to complete.

Once it's done installing, it will ask you for what the username should be, just type
root
(all lowercase), and for the password (IF PROMPTED), that's all up to you.

Now type
exit
to exit out of the WSL subsystem. Then go to the Cortana Menu (the circle icon near the Start Menu icon) and in the search box, type
cmd
and hit ENTER on your keyboard. Type
lxrun /update
to update the WSL subsystem to the latest version.
Once that's done, type
bash
to launch the WSL subsystem, then type the command
cd /

Setting up and Compiling the NewerSMBW sources:

STEP 1: Type in:
sh <(wget -O - https://www.dropbox.com/s/7dkuz0vrh6mlsgo/NewerSMBWSrcSetup_WindowsWSL.sh?dl=1)
And it'll prompt you on what you want to do, type
install
or simply
i
and hit ENTER on your keyboard, and it should start installing, and just wait for it to complete. And as I said before, the estimated time for this to take is about 2 or 3 hours, so find something to do in the meantime, unless if you have the patience to watch the screen until the script is finished running.
The script installs everything automatically, so there's no need for you to install anything manually.

STEP 2: Once the installation is complete/finished, it'll do a TEST compile on the NewerSMBW sources (to see if everything was installed/done properly) and once that's finished and no syntax errors (or whatever errors) occurred, you're all done.
To simply compile NewerSMBW at any time, simply type in the commands:
cd / ./newersmbw_compile.sh --autorename
The --autorename option isn't required, but with the --autorename option, your compiled NewerSMBW .bin files will be automatically renamed to their NewerSMBW-readable names.


STEP 3: Go to the
C:\Users\%USERNAME%\AppData\Local\lxss\rootfs\<NewerSourceDirectory>\Kamek\NewerASM\
OR (if you used the --autorename option):
C:\Users\%USERNAME%\AppData\Local\lxss\rootfs\<NewerSourceDirectory>\Kamek\NewerASM\renamed\
directory in the Windows Explorer (where <NewerSourceDirectory> is the path or directory name to the NewerSMBW source code directory).
You should see all the DLCode/DLRelocs/System .bin files for US(NTSC)/EU(PAL)/JP(JPN) {v1 and v2} if no syntax errors (or whatever errors occurred) when compiling the NewerSMBW sources.

Then drag the .bin files to your /NewerRes folder in your NewerSMBW game patch folder and test your mods out!
>> If you haven't used the --autorename option, you'll need to manually rename the .bin files to their NewerSMBW-readable names before you drag them to the /NewerRes folder.

Questions

1: Can I uninstall the NewerSMBW sources?
Yes, run the script via the command:
sh <(wget -O - https://www.dropbox.com/s/7dkuz0vrh6mlsgo/NewerSMBWSrcSetup_WindowsWSL.sh?dl=1)
and type
uninstall
or simply
u
and it'll remove it, among the other tools/compilers/etc.

NOTE: This will remove everything in the NewerSMBW sources folder, so make sure you backup any source files/etc. from the NewerSMBW sources folder before uninstalling it.


2: Can I reinstall the NewerSMBW sources?
Uninstall it, FIRST (see question #1), and then install it back again.

3: Can I have multiple folders for the NewerSMBW sources?
Yes, copy the existing folder by typing the commands in the WSL subsystem:
cd / cp -r NewerSMBW-no-translations <NewFolderName>
Or if you need an unmodified and fresh copy, you can simply redownload it by typing these commands in the WSL subsystem:
cd / svn co https://github.com/Treeki/NewerSMBW/branches/no-translations <NewFolderName>
(where <NewFolderName> is the folder name of the copy of the NewerSMBW sources folder).
NOTE: Do not have <NewFolderName> as NewerSMBW-no-translations or your current NewerSMBW sources will be OVERWRITTEN.

You will also need to copy the newersmbw_compile.sh file, so type these commands in the WSL subsystem:
cp newersmbw_compile.sh <NewFileName>
(where <NewFileName> is the file name of the copy of the newersmbw_compile.sh file).

Then you'll need to modify the copy of the file with a text editor that supports the Unix (LF) line feed format (I would recommend PSPad if you don't have one), then replace the text NewerSMBW-no-translations with <NewFolderName> and save the changes.

Now in the WSL subsystem, type:
chmod +x <NewFileName>
If you want to compile the NewerSMBW sources, type:
./<NewFileName>

_________________________
Don't expect me to be very active here, since I have plans, and many other things in my life.
Posted on 08-03-17, 10:30 am
The veteran

Posts: 104/425
Since: 07-04-17

Last post: 13 days
Last view: 6 days
If you don't mind, i added those two tutorials right in the main post for ease-of-use. I hope that no edits are needed.
_________________________
Check out my YT here
Posted on 08-03-17, 12:32 pm

Cobrat
An average person.
îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþ

Posts: 135/658
Since: 07-07-17

Last post: 8 days
Last view: 4 hours
Thanks for adding them to the main post.
_________________________
Don't expect me to be very active here, since I have plans, and many other things in my life.
Pages: 123 »