With cordite in the air, splintered steel, shell casings and powder burns, there’s only one explanation...
Post feedback & meet new friends. General SG discussion.

Moderators: Pardner, TheDoctor

Postby [PTR]Manoel Victor » Thu Aug 18, 2011 12:58 am

Pardner wrote:
Manoel Victor wrote:I move this topic to SG Forums>SVN

You only need one thread per topic, please don't create multiple threads for the same question. Having multiple threads will not increase the number of responses.

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

So I tried things out on my windows machine, and I made a mistake. The build scripts are included in the 1.0 code. So your steps should be:
  1. Download and install TortoiseSVN
  2. Checkout https://smokinguns.svn.sourceforge.net/svnroot/smokinguns/trunk/
  3. Double click on the cleanvm.bat
  4. Double click on the buildvm.bat
  5. Navigate to */build
  6. Right-click on the VM folder, and select Send to --> Compressed zip
  7. Rename vm.zip to zz_vm.pk3
  8. Move zz_vm.pk3 to your smokinguns folder

Pardner, but the folder "build" was not created!
And now?
User avatar
[PTR]Manoel Victor
Quick Draw
 
Posts: 71
Joined: Fri Apr 01, 2011 11:04 pm
Location: Brasil



Postby Pardner » Thu Aug 18, 2011 4:35 pm

Manoel Victor wrote:Pardner, but the folder "build" was not created!
And now?


OK, like I said, "I really have not done do much with the code and running mods." and I have not tried to build the 1.0 qvm before. I looked this morning and you are right, the build scripts puts the qvms in /code/output
User avatar
Pardner
SG Team
 
Posts: 1786
Joined: Fri Nov 18, 2005 5:48 am
Location: MD, USA



Postby [PTR]Manoel Victor » Thu Aug 18, 2011 5:02 pm

Pardner wrote:
Manoel Victor wrote:Pardner, but the folder "build" was not created!
And now?


OK, like I said, "I really have not done do much with the code and running mods." and I have not tried to build the 1.0 qvm before. I looked this morning and you are right, the build scripts puts the qvms in /code/output

Sure, but what I do now?
User avatar
[PTR]Manoel Victor
Quick Draw
 
Posts: 71
Joined: Fri Apr 01, 2011 11:04 pm
Location: Brasil



Postby Pardner » Thu Aug 18, 2011 5:41 pm

Pardner wrote:
  1. Right-click on the VM folder, and select Send to --> Compressed zip
  2. Rename vm.zip to zz_vm.pk3
  3. Move zz_vm.pk3 to your smokinguns folder


Then you make the modifications that TheDoctor posted, run the build scripts again, and then repeat the above steps. This will load new game code. If you want to check to see if the game is actually running your code, make some simple changes ( change damage, max ammo, etc)
User avatar
Pardner
SG Team
 
Posts: 1786
Joined: Fri Nov 18, 2005 5:48 am
Location: MD, USA



Postby [PTR]Manoel Victor » Thu Aug 18, 2011 6:27 pm

Pardner wrote:
Pardner wrote:
  1. Right-click on the VM folder, and select Send to --> Compressed zip
  2. Rename vm.zip to zz_vm.pk3
  3. Move zz_vm.pk3 to your smokinguns folder


Then you make the modifications that TheDoctor posted, run the build scripts again, and then repeat the above steps. This will load new game code. If you want to check to see if the game is actually running your code, make some simple changes ( change damage, max ammo, etc)

Pardner, excuse my ignorance, but I do not understand anything of what to do!
User avatar
[PTR]Manoel Victor
Quick Draw
 
Posts: 71
Joined: Fri Apr 01, 2011 11:04 pm
Location: Brasil



Re: More than a little help here please

Postby Pardner » Thu Aug 18, 2011 7:36 pm

TheDoctor wrote:Disclaimer: SB is a non-standard mod and thus requires changes to the SG source code. If you don't know how to patch/modify the source code and how to compile Smokin' Guns, you won't be able to (fully) duplicate SB's functionality.


Doc did not post all his code, he simply left it up to you to make changes to your code.
  1. Modify code
    • cgame controls things on the client side
    • game controls things on the server side
    • ui controls the user interface
  2. Compile code using the cleanvm.bat and buildvm.bat
      The game loads the source code via QVMs. This is a much safer and easier way than building dlls. If you only modify things in game, cgame, and ui folders then you only need to compile the QVMs
  3. zip and rename vm folder
      If you make modifications to only the game folder and only use the game.qvm, then people joining your server don't need to have your mod installed.
  4. Move to smokinguns folder
User avatar
Pardner
SG Team
 
Posts: 1786
Joined: Fri Nov 18, 2005 5:48 am
Location: MD, USA



Re: More than a little help here please

Postby [PTR]Manoel Victor » Thu Aug 18, 2011 8:24 pm

Pardner wrote:
TheDoctor wrote:Disclaimer: SB is a non-standard mod and thus requires changes to the SG source code. If you don't know how to patch/modify the source code and how to compile Smokin' Guns, you won't be able to (fully) duplicate SB's functionality.


Doc did not post all his code, he simply left it up to you to make changes to your code.
  1. Modify code
    • cgame controls things on the client side
    • game controls things on the server side
    • ui controls the user interface
  2. Compile code using the cleanvm.bat and buildvm.bat
      The game loads the source code via QVMs. This is a much safer and easier way than building dlls. If you only modify things in game, cgame, and ui folders then you only need to compile the QVMs
  3. zip and rename vm folder
      If you make modifications to only the game folder and only use the game.qvm, then people joining your server don't need to have your mod installed.
  4. Move to smokinguns folder

Aff, I still do not understand, I do that whole process?
To import, you know, with SVN? Pass me a tutorial step by step please, I'm afraid of making mistakes here!
Thanks in advance.
User avatar
[PTR]Manoel Victor
Quick Draw
 
Posts: 71
Joined: Fri Apr 01, 2011 11:04 pm
Location: Brasil



Postby Pardner » Fri Aug 19, 2011 12:54 am

from the beginning

  1. Download and install TortoiseSVN client: 32bit or 64bit
  2. Create a new folder where you want to save your source code.
  3. Right click on the newly created folder and select "Checkout"
    Image
  4. In the window that opens, enter the following address in the "URL of repository" field
    https://smokinguns.svn.sourceforge.net/svnroot/smokinguns/trunk
    then click "OK"
    Image
  5. Make the necessary modifications to the source code. There is no tutorial that I can write for this step. I do not know how to make TheDoctor's mod.
  6. Double click on the cleanvm.bat
  7. Double click on the buildvm.bat
  8. Navigate to */code/output
  9. Right-click on the VM folder, and select Send to --> Compressed zip
  10. Rename vm.zip to zz_vm.pk3
  11. Move zz_vm.pk3 to your smokinguns folder
  12. Launch game
User avatar
Pardner
SG Team
 
Posts: 1786
Joined: Fri Nov 18, 2005 5:48 am
Location: MD, USA



Postby [PTR]Manoel Victor » Fri Aug 19, 2011 1:01 am

Pardner wrote:from the beginning

  1. Download and install TortoiseSVN client: 32bit or 64bit
  2. Create a new folder where you want to save your source code.
  3. Right click on the newly created folder and select "Checkout"
    Image
  4. In the window that opens, enter the following address in the "URL of repository" field
    https://smokinguns.svn.sourceforge.net/svnroot/smokinguns/trunk
    then click "OK"
    Image
  5. Make the necessary modifications to the source code. There is no tutorial that I can write for this step. I do not know how to make TheDoctor's mod.
  6. Double click on the cleanvm.bat
  7. Double click on the buildvm.bat
  8. Navigate to */code/output
  9. Right-click on the VM folder, and select Send to --> Compressed zip
  10. Rename vm.zip to zz_vm.pk3
  11. Move zz_vm.pk3 to your smokinguns folder
  12. Launch game

Ok, now I get it, sorry my friend taking his time, now please can change my name to [PTR] Manoel Victor?
Oh, and can give me some tips on where hacking on the code to set phases, change weapons, this whole thing please?
User avatar
[PTR]Manoel Victor
Quick Draw
 
Posts: 71
Joined: Fri Apr 01, 2011 11:04 pm
Location: Brasil



Postby Pardner » Fri Aug 19, 2011 1:05 am

Manoel Victor wrote:can give me some tips on where hacking on the code to set phases, change weapons, this whole thing please?


Pardner wrote:I do not know how to make TheDoctor's mod.


Sorry, that's where you need to spend some time with the code. Having some previous programming background helps. TheDoctor already posted that you should start in game/g_items.c
User avatar
Pardner
SG Team
 
Posts: 1786
Joined: Fri Nov 18, 2005 5:48 am
Location: MD, USA



Postby [PTR]Manoel Victor » Fri Aug 19, 2011 1:09 am

Pardner wrote:
Manoel Victor wrote:can give me some tips on where hacking on the code to set phases, change weapons, this whole thing please?


Pardner wrote:I do not know how to make TheDoctor's mod.


Sorry, that's where you need to spend some time with the code. Having some previous programming background helps. TheDoctor already posted that you should start in game/g_items.c

Ok, I've asked a little help to the Doctor!
Now, I ask you to help me solve this problem in another topic:
viewtopic.php?p=21555#21555
User avatar
[PTR]Manoel Victor
Quick Draw
 
Posts: 71
Joined: Fri Apr 01, 2011 11:04 pm
Location: Brasil



Previous

Return to Saloon

Show Sidebar
Show Sidebar

User Control Panel

cron