Raised This Month: $32 Target: $400
 8% 

Add a flags update forward in 1.8.3


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-30-2017 , 13:56   Re: Add a flags update forward in 1.8.3
Reply With Quote #21

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?
__________________

Last edited by OciXCrom; 12-30-2017 at 13:56.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-30-2017 , 14:04   Re: Add a flags update forward in 1.8.3
Reply With Quote #22

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.
__________________

Last edited by klippy; 12-30-2017 at 14:08.
klippy is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-30-2017 , 14:10   Re: Add a flags update forward in 1.8.3
Reply With Quote #23

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 Crogram 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 
__________________

Last edited by OciXCrom; 12-30-2017 at 14:33.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-30-2017 , 14:44   Re: Add a flags update forward in 1.8.3
Reply With Quote #24



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.


They look like emoji though.
__________________

Last edited by klippy; 12-30-2017 at 14:47.
klippy is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-31-2017 , 08:23   Re: Add a flags update forward in 1.8.3
Reply With Quote #25

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.
__________________

Last edited by OciXCrom; 12-31-2017 at 08:29.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-31-2017 , 09:28   Re: Add a flags update forward in 1.8.3
Reply With Quote #26

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.
__________________
klippy is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-31-2017 , 10:13   Re: Add a flags update forward in 1.8.3
Reply With Quote #27

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.
__________________

Last edited by OciXCrom; 12-31-2017 at 10:13.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-31-2017 , 13:44   Re: Add a flags update forward in 1.8.3
Reply With Quote #28

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 
__________________

Last edited by OciXCrom; 08-24-2018 at 07:27.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:37.


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