Changes not being made to 'MyMod'


(fetzington) #1

//youtu.be/n3jMN5rOLJw

As you can notice in the video, I make changes to the SDK and they don’t work ingame. Ingame I go to Host game and Start the server.

Thanks in advanced, Fetz


(system) #2

Have you put the dll in the moded folder? or added it to a pk3 file?


(fetzington) #3

I did as the tutorial said (Compiling a mod in Windows) and as I just showed you in the video.

I packed up ui and cgame into a .pk3 and put it into mymod. The other one… qagame I think… I put in there unpacked like the tutorial said.


(fetzington) #4

Just tried to put the .dll’s in the mod folder raw, still doesn’t work.


(system) #5

qagame is the one that run’s the server aka the mod, erm maybe with the edits you made you need cvars for? so if you made some changes as g_xpsave 34 “xpsave forever” or somin, maybe you need to set them in the cfg and restart the server?


(acQu) #6

Hm, i am not sure if you know, but you are using “sdk-plus” not “sdk”. “sdk-plus” is a modded “sdk”, a better “sdk” in theory. Just so you know. Therefore, the tutorial you are doing is not working, as it is intended for “sdk”.

Solution:

You do everything right, but you need to take the files from build dir. So copy the .dll files (cgame, ui, qagame) from “build” dir just like you did with debug in that video. Then, i saw you compile with Lua and Sqlite linked, so the loader will need these libs when starting et.exe. So additionally just copy lua5.1.dll and sqlite3.dll into folder with et.exe, and that should be it. EDIT hm, no, you also need the other files (gfx, scripts, sounds folder) packed together with your binaries into your client pk3. Do you know how to exec a batch script? Then look up the .bat files (install.bat or the install-ext.bat). Don’t forget to edit the path to where it should copy your packed mod.

Readme.txt contains all the info you need by the way (to install the mod). So this might have been the faster way to read that first.


(fetzington) #7

Yes I know I am using sdk-plus. I could not get the install script to work, I edited it to match my setup but still no work. Anyways, I just read what the install script did and did it myself. The mod still did not work :confused: Everything is in the z.pk3 (which I tried to rename to mymod.pk3 after z.pk3 did not work) including sounds, gfx, scripts, cgame, qagame, and uigame.

Also I moved them raw into the mod directory aswell.

Thanks in advanced, Fetz


(acQu) #8

The install script needs 7.zip (also added to system path), and you should start it from command line to see what error it throws. I admit, there needs to be more clear steps on how to use it, so that absolute coding beginners can use it better :slight_smile:

Then, qagame does not need to go into pk3. qagame is the server lib.

Also: you can tell if it loaded the mod by typing something in chat. It should pop up a teamflag beside your writings.

Make sure you do the following steps:

  • delete all the .dll s in the build folder.
  • rebuild the complete mod on release settings. If no new .dlls pop up in your build folder again, then this is what is wrong. But there should pop up new ones, actually.
  • If new ones pop up, then pack them again (do not pack qagame into .pk3, only cgame and ui, and gfx, sound, scripts).
  • take resulting .pk3 and qagame.dll and move them to your mymodfolder.
  • then start up the mod again, with right shortcut. The name z.pk3 or mymod.pk3 doesn’t matter. It just searches for filenames like cgame_x86.dll. It automatically will find that in the pk3s you place there.

This should finally work. If it doesn’t, then please make another youtube video. Something weird could be going on. When doing a new vid, can you please do all the steps i just did above :slight_smile: It really should work. You are on windows 7 right? Also i think you use visual stuido 2008, right? Can’t really distinguish all that … anymore … it is all the same :smiley:


(fetzington) #9

Using Visual Studio 2008 and Windows 7.

Back before I tried to mod JKA (Another Q3 game) I had the same issue and only fix was to put the .dll’s in the root directory. But ET keeps them in etmain not root directory.

Will try what you said again.


(fetzington) #10

Alright I just did what you said and the weapon modification did not work. The ammo was still 30/30

Although I added a new command in cg_consolecommands.c called Hello_World

Basically it just output Hello World when you did /hello in the console, very simple command. This worked. I could do /hello in the game and it output Hello World! in the chat.

My guess it I didn’t modify the weapon right. Here is what my MP 40 looks like in SDK.


It is bg_misc.c


(gaoesa) #11
  1. In Visual Studio, select Build->Configuration Manager from the top menu. Select Release as Active Solution Configuration.

  2. Right click the game on the left solution explorer. Select properties. Expand C/C++. Select Command Line, it is at bottom. From additional options, delete /D “LUA_SUPPORT” and /D “XPSAVE_SUPPORT”.

  3. Rebuild. Copy the qagame_mp_x86.dll from the build folder to the mymod folder like before.

  4. Test again.

Or

  1. Copy the lua5.1.dll and sq3lite.dll from the build folder to the same folder as ET.exe file.

(fetzington) #12

Fixed everything up. Thankyou all for your replies! Have a nice day, Fetz