Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2009-11-29 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
December 19, 2009, 07:55:30 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Remember to check on the FAQ before start posting.
It may save you time and effort.
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
Author Topic: How to make sounds and models downloadable  (Read 98 times)
Nekrage
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 42




Nekrage
« on: November 26, 2009, 12:18:21 AM »

Hey guys, im working on my wcs server and i would like to be able to have players who connect to my server be forced to download models and sounds that some races require. How would i go about doing that?
Logged
AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 637




doug_tiozao
« Reply #1 on: November 26, 2009, 12:31:24 AM »

make a new folder in eventsripts folder called dontknow, inside of it create a new notepad called es_dontknow, then open it and insert it:

Code:
event es_map_start
{
        downloadable "sound/yoursoundfolder/nameofit.wav or .mp3
}
Logged

Lol?
Zawmbee
Guest
« Reply #2 on: November 26, 2009, 03:16:02 AM »

Avast is right, with an error it seems, go about it like this...

Create a new folder in your eventscripts folder called downloads
Create a new .txt document called es_downloads in that folder
Add the code below as a guideline to follow when creating downloads
Add es_load downloads to your autoexec.cfg

(Remember that you need to add the downloadable files to both load and map start...)

Code:
event load
{
// Examples
// downloadable sound/example/example.wav
// downloadable models/example/example.mdl
// downloadable materials/example/example.vtf
// Add your files below
}

event es_map_start
{
// Examples
// downloadable sound/example/example.wav
// downloadable models/example/example.mdl
// downloadable materials/example/example.vtf
// Add your files below
}
« Last Edit: November 26, 2009, 05:03:49 AM by Zawmbee » Logged
Nekrage
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 42




Nekrage
« Reply #3 on: November 26, 2009, 04:00:43 AM »

Got it working through mani Smiley thx for the help though guys. Maybe you guys will be able to tell me why people have to constantly download the same file over and over every time they connect or the map switches? Anyone have any idea?
Logged
Zawmbee
Guest
« Reply #4 on: November 26, 2009, 04:54:14 AM »

Got it working through mani Smiley thx for the help though guys. Maybe you guys will be able to tell me why people have to constantly download the same file over and over every time they connect or the map switches? Anyone have any idea?

Because you are using mani... look, use our way and you only have to do it once...
Logged
Nekrage
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 42




Nekrage
« Reply #5 on: November 26, 2009, 05:42:04 AM »

You got it! Gunna switch over to that.
Logged
AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 637




doug_tiozao
« Reply #6 on: November 26, 2009, 04:35:22 PM »

:O
Logged

Lol?
Sasuke[Icetouch]
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 160


FreeTimeCoder


« Reply #7 on: November 26, 2009, 04:46:39 PM »

This downloading over and over again happens if the files are not on your server to download, so it just tries to download a not existing file, which actually does not work, so he tries it everytime.
Logged

################################
Don't think you can believe in what you thought you could believe in.
Now, tell me, did you find any sense in that?
No? Read it again.
Still not?
################################
Zawmbee
Guest
« Reply #8 on: November 26, 2009, 06:37:41 PM »

This downloading over and over again happens if the files are not on your server to download, so it just tries to download a not existing file, which actually does not work, so he tries it everytime.

Nope, sometimes there are glitches that redl it over and over as if a precaution...
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
December 18, 2009, 09:03:34 PM
i change password by reseting in cpanel...yes i tried to look in phpmyadmin but coudn't find to change password
December 18, 2009, 09:02:20 PM
hum... actually unsure phpmyadmin can do this, well it's still in mysql.ini
December 18, 2009, 09:02:01 PM
what password?
SQL?
Where did you change it?
Only one website = you need to change it in the database (using phpmyadmin for example)
December 18, 2009, 06:57:16 PM
no it because i lost my password so i change it new password then it show unable to connect database...so look like file need to be edit to put same password...but idk how Sad
December 18, 2009, 12:44:23 PM
uptodate*
December 18, 2009, 12:44:16 PM
if your site returns an error, it's probably cause Avast isn't updated, but can also be cause you failed Tongue
December 18, 2009, 12:08:18 PM
fixing by hacking? Cheesy
Recent
[Today at 07:42:30 AM]

[Today at 06:11:55 AM]

[Today at 05:23:36 AM]

[Today at 02:28:49 AM]

[Today at 02:25:03 AM]

[Today at 12:51:07 AM]

[December 18, 2009, 11:27:09 PM]

[December 18, 2009, 11:08:34 PM]

[December 18, 2009, 10:19:40 PM]

[December 18, 2009, 08:57:15 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.094 seconds with 23 queries.