lfnetwork.com mark read register faq members calendar

Thread: Various Things...
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 04-08-2004, 03:36 PM   #1
Jon Denver
Rookie
 
Join Date: Apr 2004
Location: Denver, CO
Posts: 10
Question Various Things...

Lazyness? I unno, it's alot of code to look through.

So I've gotten some itty bitty changes in (read: tiny weapon changes), compiled, all that good stuff hooked up and working. Now I wanna go deeper.

I'm kinda confused about keys that do things. When I press a key, where's it get recognized? I tried my damnedest to find the code for the zooming function on the disruptor, but got lost and just found firing functions. -_-

The camera. Where's that stuff at?

Still a little confused as to the whole client-server dealie. The client wants to perform a function (Move, Fire weapon, what have you), client sends the request to the server, then the server tells the clients what happened and what function to perform... right? How exactly should one code things in?

int vmMain(), It looks like this is where it all starts. Is it called from jamp.exe every, whats the wording... CPU cycle?

Thats it, for now.


Programmers are just a tool to convert coffee into code.
Jon Denver is offline   you may: quote & reply,
Old 04-11-2004, 10:33 AM   #2
Jon Denver
Rookie
 
Join Date: Apr 2004
Location: Denver, CO
Posts: 10


*bump*


Programmers are just a tool to convert coffee into code.
Jon Denver is offline   you may: quote & reply,
Old 04-11-2004, 01:07 PM   #3
RenegadeOfPhunk
 
RenegadeOfPhunk's Avatar
 
Join Date: Apr 2002
Location: UK
Posts: 731
There is only one real practical tip I can give you for the stage your at:

Find in files

Just do LOTS of searches for the word which your interested in - on all source files in the project.

...so for example, your interested in camera stuff. Just do a search for 'camera' in the code. A lot of the entries found could be misleading, but as you do it more and more, you'll eventually learn where the important stuff is.

It takes a while, and you need a lot of patience and determination, but you can learn - bit by bit - how the code works just be doing something as simple as doing searches on keywords.

...of course, you need to learn C programming too!


/* RenegadeOfPhunk */

OJP forums
OJP website - WIP

Movie Battles!
RenegadeOfPhunk is offline   you may: quote & reply,
Old 04-12-2004, 07:46 AM   #4
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,187
You're overestimating the level of interaction between the client and the server. The only things that are sent from the client are commands, cvar data, and the input packet that's created by the client game engine.

The server sends the client an updated playerstate for that player's entity, entitystates for the other entities, event data, and cvar updates.

Everything else is extraploted from that data on both the server and the client.

All the camera control stuff is handled by the client system on a per client frame basis.

If you could be more specific, I can be more specific in my answer.


---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 > Various Things...

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 10:25 PM.

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