Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-09-22 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
September 21, 2012, 09:47:08 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Does War3Source Dynamically Load Races? If not...  (Read 108 times)
-El Diablo
Full Member
***
Posts: 175


View Profile
« on: May 25, 2012, 05:21:49 AM »

I've not studied this part of the code very hard, but while I'm at work I've came up with an idea I'd like to try.. not sure if war3source does this already or not..

Is there a way to dynamically load / unload races as needed.  I only need these races for special events, but I don't want to bog down the server with a bunch of races that are not needed but for only special times.  Still want the server to be able to list all races usable and add (dynamic loading) to the tag if it requires a moment to load the race.

If there isn't a way, how possible is it to create a way to dynamically load / unload races?

Maybe even allow the server to decide.. "this is a popular race keep it loaded, this is unpopular dynamically load this one"

There are many reasons to do this:

1. Have a unlimited supply of races (which I want to be able to do)

2. Having a huge number of races won't bog down your server.

3. May wish to do this also for shopmenus 1 and 2.

4. To expand War3Source Mod Wink


My Main Reason is to have a unlimited number of races!  Yep, you heard it.  I've got plans for having a ton of races.  As soon as the Category system is working for my server, I'll be building a huge database of new races with multiple different levels, etc.

The plans that I have discussed to have a multiple servers, where levels 1-16 go to and 32 - 48 go to, etc.. is still in the works.


ps..

I know I always talk about all these races I have, and I have not yet donated any new races to war3source.. but as of right now I've got a ton of race ideas on my server and in some books to create about 200 new races.  I'm only currently focusing on creating the server enviroment first where these new races can play on.

My next thing is to create a special open source delphi windows software that I can give out to my friends on war3source and others to use to develop races quickly.  It will have templates of premade code that is commonly used to create races along with help, etc.  It will be something that will help me create a ton of races very fast, and something that I plan to use to make tons of new races.

At this time, I'm focusing on Server Enviroment.  When I do create my open source delphi software, I'll post it here on war3source.com

« Last Edit: May 25, 2012, 05:30:45 AM by -El Diablo » Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2032



View Profile WWW Email
« Reply #1 on: May 25, 2012, 09:50:34 AM »

static limits and static races are THAT much easier to code, this is sourcepawn, not c++, dynamic arrays are very hard to use syntatically

im sure you can load 200 races without a problem as sm is quite fast, without modifying the code to dynamically load stuff, but you are probably focusing on quantity not quality. Original war3ft is popular with just 8 well done races.
Logged

DarkEnergy
Revan
Sr. Member
****
Posts: 263



View Profile
« Reply #2 on: May 25, 2012, 10:48:56 AM »

You should realy consider doing quality stuff, just watch the tons of engies which are available, some of them:
- ward engine
- all wcx stuff
- fakenpc engine
- model engine(cs.s only atm but it can be ported)
- skill dependency
- generic skills..uhm ok thats probably quantity :p

i decided to use race trees as an Addition to this - you need to Max out undead to unlock naix, u need to Max out x and y to get z and so on! It's pretty nice for players because they Don't Know which race will be unlocked next.
Logged

-El Diablo
Full Member
***
Posts: 175


View Profile
« Reply #3 on: May 25, 2012, 11:05:32 AM »

i decided to use race trees as an Addition to this - you need to Max out undead to unlock naix, u need to Max out x and y to get z and so on! It's pretty nice for players because they Don't Know which race will be unlocked next.

Is that one of the reasons to use "hidden" flag?  to allow races to unlock eachother?


Logged
Revan
Sr. Member
****
Posts: 263



View Profile
« Reply #4 on: May 25, 2012, 01:58:30 PM »

nope i create a new w3cvar called "extends" (war3 naix_extends "undead,orc") which hides a race until 1 of the races in _extends is maxed out
Logged

Glider⠠⠵
Global Moderator
Sr. Member
*****
Posts: 402


⠠⠵


View Profile
« Reply #5 on: May 25, 2012, 04:01:38 PM »

i decided to use race trees as an Addition to this - you need to Max out undead to unlock naix, u need to Max out x and y to get z and so on! It's pretty nice for players because they Don't Know which race will be unlocked next.

Is that one of the reasons to use "hidden" flag?  to allow races to unlock eachother?




I use hidden for races that are only for bots, as players never need to see them in their changerace list.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!