AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   Add a flags update forward in 1.8.3 (https://forums.alliedmods.net/showthread.php?t=303962)

OciXCrom 12-30-2017 13:56

Re: Add a flags update forward in 1.8.3
 
I installed all 3 of them (6+ GB, woah) and I got the 14.0 directory. There is the vcvarsall.bat file in it and a vcvars32.bat in the VC/bin directory, so which one do I use and how? Do I run it from my CPPStuff directory using cmd.exe/git bash and what do I need to write exactly because I just wrote "vcvars32" and it says invalid command?

klippy 12-30-2017 14:04

Re: Add a flags update forward in 1.8.3
 
I think you can use either "vcvars32" or "vcvarsall x86", but I'm using "vcvars32" personally and I have the VC/bin directory in my %PATH% environment variable so I can just run it (or any other VC tools) from any directory.
You run it from the same instance of cmd.exe that you are going to use for "ambuild". Doesn't matter what your working directory is, just run it and use that same cmd.exe instance for building AMXX.
Environment variables are (unless explicitly set system-wide or per-user) per-process, so you run "vcvars32" to set up some environment variables for your current instance of cmd.exe. AMBuild isn't going to find the C++ compiler unless you do it.

Quote:

6+ GB, woah
Yeah I never understood what the hell Microsoft does with their software when it all ends up so large.

And then people rant how Linux is difficult to use (try Googling "Linux is difficult"). A working C++ environment is so much easier to set up there.

OciXCrom 12-30-2017 14:10

Re: Add a flags update forward in 1.8.3
 
Yeah, but how do I actually run it? I just dragged and dropped the file in the commandline and hit enter - https://i.imgur.com/f6QI8h2.png - nothing seems to be happening. Then I executed the next python command and it threw an exception saying the compiler is not found. I'm not very familiar with the commandline commands. Do I need to be in the C:Program Files directory when I run it? Do I need to get back to my CPPStuff directory for the other commands? How do I actually go back to it? The "cd" command doesn't want to put me in the E: disk for some reason.

Basically, where do I need to be in order to execute these commands and how do I get there in cmd.exe:

PHP Code:

vcvars32
python 
../configure.py --no-mysql
ambuild 


klippy 12-30-2017 14:44

Re: Add a flags update forward in 1.8.3
 
https://image.prntscr.com/image/z9N2...3mvpZGc7xg.png

Now because "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin" is in my %PATH%, I can just write "vcvars32" instead of specifying the full path and it would find it.
Yes, seemingly nothing happens when you run it but it will set up the environment for your cmd.exe process.
Also if you want to switch to a directory on another drive you just have to type in "E:" for example into the command prompt. I don't know why, it's dumb.

https://image.prntscr.com/image/eSrG...vXUnM24euA.png
They look like emoji though.

OciXCrom 12-31-2017 08:23

Re: Add a flags update forward in 1.8.3
 
Ah, that's better. It worked now, got to the "ambuild" command, but got an error related to some "amtl" deirectory when I executed it and the build failed: https://i.imgur.com/4yTKj8p.png
Do i need this too? I used "git clone" on it and put it in the CPPStuff directory, but it didn't change anything.

klippy 12-31-2017 09:28

Re: Add a flags update forward in 1.8.3
 
Whoopsie, I knew I would forget something.
Go to amxmodx directory and execute
Code:

git submodule init
git submodule update --recursive

I think that will do it. AMTL is a git submodule of AMXX.

OciXCrom 12-31-2017 10:13

Re: Add a flags update forward in 1.8.3
 
It finally worked! I got the .dll files. I'll try out if they actually work later and then do some modifications. Thank you very much.

OciXCrom 12-31-2017 13:44

Re: Add a flags update forward in 1.8.3
 
It is done! It was actually pretty easy and fun to do. Here's the pull request: https://github.com/alliedmodders/amxmodx/pull/475

For anyone else who is interested in doing this, here is the final "tutorial":

PHP Code:

### First time setup ###

git clone https://github.com/alliedmodders/ambuild
cd ambuild
python setup
.py install
cd 
..
git clone https://github.com/alliedmodders/hlsdk
git clone https://github.com/alliedmodders/metamod-hl1
git clone https://github.com/alliedmodders/amxmodx
git clone https://github.com/alliedmodders/amtl
cd amxmodx
git submodule init
git submodule update 
--recursive
cd 
..
mkdir "amxmodx/obj-windows"
cd amxmodx/obj-windows

### Build process ###

### This line can be different for some users. Make sure you specify the correct path to the "vcvars32.bat" file. ###
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\vcvars32.bat"
python ../configure.py --no-mysql
ambuild 



All times are GMT -4. The time now is 17:24.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.