UGX-Mods

Call of Duty 5: World at War => Map Releases => Custom Maps, Mods & Tools => UGX Team Releases => Topic started by: treminaor on July 18, 2011, 01:57:56 am

Title: [Script] treminaor's bank system version 2.0
Post by: treminaor on July 18, 2011, 01:57:56 am
I'm proud to announce the release of version 2 of my bank system! It has been completely rewritten from the ground up, and a few new features have been added. More importantly, while the old trem_bank was 500 lines long and poorly coded, this new version is only 144 lines long!

ugx-mods.com

Menu Styles:
Mouse (left) and Keyboard (right)
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fdl.dropbox.com%2Fu%2F7345145%2Fimage_uploads%2Ftrem_bank%2Ftrem_bank_mouse.png&hash=d71ac992ebee53645a342e0b6cd78bc012e9e728) (https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fdl.dropbox.com%2Fu%2F7345145%2Fimage_uploads%2Ftrem_bank%2Ftrem_bank_keyboard.png&hash=f3dad2093010f8a4bc766b9d8f7a9d2ef775995e)


Treminaor's Bank, version 2.0 README

Credits: [UGX] treminaor, http://ugx-mods.com
Contact:
   Xfire: treminaor
   Email: [email protected]
   YouTube: treminaor

VIDEO TUTORIAL:  http://www.youtube.com/watch?v=7XnS1ByYM-Y&hd=1

INSTALLATION INSTRUCTIONS:
   1) Copy these files to the following locations:
      trem_bank_2.gsc       -> C:\Program Files (x86)\Activision\Call of Duty - World at War\mods\MAPNAME\maps
      trem_bank_mouse.menu       -> C:\Program Files (x86)\Activision\Call of Duty - World at War\raw\ui\scriptmenus
      trem_bank_keyboard       -> C:\Program Files (x86)\Activision\Call of Duty - World at War\raw\ui\scriptmenus
      images/trem_bank_bg.iwi      -> C:\Program Files (x86)\Activision\Call of Duty - World at War\mods\MAPNAME\images
      materials/trem_bank_bg      -> C:\Program Files (x86)\Activision\Call of Duty - World at War\raw\materials\

   2) Open C:\Program Files (x86)\Activision\Call of Duty - World at War\raw\maps\nazi_zombie_MAPNAME.gsc
      Find this text:
         
Code Snippet
cpp
maps\_zombiemode::main();
         
      then add this right below it on the next line:
         
Code Snippet
cpp
level thread maps\trem_bank_2::bank();
         
      And finally, add these two lines right above maps\_zombiemode::main():
         
Code Snippet
cpp
precacheMenu("trem_bank_mouse");
precacheMenu("trem_bank_keyboard");
         
      When you are finished, it should look like:
         
Code Snippet
cpp
precacheMenu("trem_bank_mouse");
precacheMenu("trem_bank_keyboard");
maps\_zombiemode::main();
level thread maps\trem_bank_2::bank();

      
   3) Open C:\Program Files (x86)\Activision\Call of Duty - World at War\zone_source\nazi_zombie_MAPNAME.csv
         Add these lines to the TOP of the file:
            
Code Snippet
Plaintext
menufile,ui/scriptmenus/trem_bank_mouse.menu
menufile,ui/scriptmenus/trem_bank_keyboard.menu
material,trem_bank_bg

   4) Open your map in Radiant.
      a) Draw a brush box. With it still selected, right click it and go to "use -> trigger_use". With it still selected, press N on your keyboard. Give it the targetname of "trem_bank_trig" (without quotes). You can have more than one bank location. so make as many as you like.
   5) Final Step: Open Launcher.
      a) Compile your Map
      b) (If you have one, compile your mapname_patch - otherwise ignore this step)
      c) Go to the Mod Builder tab and select your mapname from the dropdown list. In the box on the right, scroll through it and make sure the following files have the boxes next to them CHECKMARKED:
         images/trem_bank_bg.iwi
         maps/trem_bank_2.gsc
         materials/trem_bank_bg
      d) Now check the "Build mod.ff Fastfile" and "Build IWD File" boxes, then press the "Build MOD" button.
      
      You're done!

Title: Re: [Script] treminaor's bank system version 2.0
Post by: flukey.lukey on February 22, 2013, 09:57:17 am
Hi,
When launching the map after launching the mod. My cod crashes and it says

"ERROR: image 'images/trem_bank_bg.iwi' is missing


Couldn't load image 'trem_bank_bg'"
Title: Re: [Script] treminaor's bank system version 2.0
Post by: SajeOne on February 22, 2013, 01:08:27 pm
is that image checked in your IWD list?
Title: Re: [Script] treminaor's bank system version 2.0
Post by: flukey.lukey on February 23, 2013, 01:45:02 am
YES!!!
I finally fixed it!!
After looking at the iwd in my root/mods/mod_name folder and comparing it to the one in users/user/activision/codwaw/mods folder I noticed that the iwd was an old version.

It had not been replaced due to it being open in an instance of codwaw. DERP!!
Title: Re: [Script] treminaor's bank system version 2.0
Post by: treminaor on February 23, 2013, 04:19:57 am
It had not been replaced due to it being open in an instance of codwaw. DERP!!
Yeah that drove me crazy before I figured out why it happened lol... usually it was because CoDWaW hadn't exited properly.