lfnetwork.com mark read register faq members calendar

Thread: Automatic dll Downloads
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 05-10-2005, 03:37 AM   #1
KMG
Lurker
 
Join Date: May 2005
Posts: 2
Automatic dll Downloads

Well I've recently started working on modding. One of the first things I wanted to do of course was create console commands (awesome alliteration). I put some in g_svcmds but then I realized that those aren't really accessible to clients except on like a listen server. So of course you need to edit the cgame, right? Now I haven't really started doing that, and I'm pretty sure I can figure it out, but I immediately thought "but hey, I want my mod to be server side only!" I remembered seeing new console cmds in other mods, then realized that the game automatically downloads dll files. Before then I hadn't realized why mod directories and stuff were created upon visiting a server-side mod like JA+ or Lugormod (I was dumb, I admit, learn something new every day). So now I'm thinking, "is this automated? If I edit certain parts of the cgame will it just send out dlls to clients? Does it send the ENTIRE cgame? Or do only certain critical parts get sent out? If so which parts, or do I need to DO something in order to make it do this automatically?" Answers to these questions would be a great help, please, I beg for knowledge.
KMG is offline   you may: quote & reply,
Old 05-10-2005, 04:09 AM   #2
Barada
Rookie
 
Join Date: Aug 2004
Posts: 25
I'm a bit hazy on exactly what you are asking. Correct me if I'm wrong.. are you saying that when you join a modded server, the server automatically sends you its cgame and ui? If that's what you are asking, then no. The cgame and ui you are seeing in the mod folders that are automatically created are basejke cgame and ui. The engine places them there by default. They are needed to run the game for you because you are running the game out of that folder, not base. If you are editing g.svcmds, thats purely serverside, I believe. You shouldn't have to edit cgame for code to work in that file.
Barada is offline   you may: quote & reply,
Old 05-10-2005, 09:12 AM   #3
madjawa
Rookie
 
madjawa's Avatar
 
Join Date: Apr 2005
Posts: 30
g_svcmds.c is where there is SERVER CONSOLE commands. For commands like that but usable by client without download, you must put yours in g_cmds.c
madjawa is offline   you may: quote & reply,
Old 05-10-2005, 08:12 PM   #4
KMG
Lurker
 
Join Date: May 2005
Posts: 2
That makes more sense. Thx. Soz for the nubness =)

Last edited by KMG; 05-10-2005 at 08:30 PM.
KMG is offline   you may: quote & reply,
Old 05-25-2005, 09:29 PM   #5
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,172
Sorry I didn't see this earlier, I've been busy.

Anyway, to answer your question, to create new console commands, you only really need to change the server side of the code. Meaning, as long as the server has the new .dll, things will work fine.

However, unless you add the command to the cgame, it won't show up on the autocompletion list of commands on the client side. But, that's pretty minor because even Raven didn't do that for a lot of the server commands.

If you need more help on how to do cvars, check out the Q3 tutorial on the subject at Code3Arena.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Automatic dll Downloads

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:02 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.