The Jedi Academy. THE Place for Jedi training.
Forums
Content
The Academy
Learn
Communicate
Personal


Forums | Editing Forum
Mods for JA
Apr 22 2008 02:01pm

Soundwave
 - Student
Soundwave
Hello, good people!

After another long while, I've re-installed JA... but for another reason than just playing it.

I was wondering how do Mods work in JA, and what does it take to create one.
I see most servers use the ClanMod and some other one...

I've downloaded ClanMod and tried to make some sense... I noticed some .cfg files with some settings in them, but I don't know where the actual programming comes.

I also noticed that ClanMod is part of something called "Open Jedi Project"(OJP), which allow usage of thier work for non-commercial work, so I assume that it's open-source.
Does anyone know where can I get that source, or is it in the .pak files or somewhere else?

And last, but I assume not least, what language do you use to program for JA?

Thanks a lot!
-soundwave-

  Login and add your comment!  
Comments
May 01 2008 11:41pm

tarpman
 - The Tarped Avenger
 tarpman

Quote:
What I want to add to ClanMod, or JA+ (or maybe to make it as an addon for other Mods) is an Anti-Laming System.

I think this is already available in some mods. Google around a bit.

Other than that, your idea is sane and sounds relatively simple to implement. You don't need a background task checking anything; you just need to timestamp whenever a player turns off his saber, and when someone attacks him, check the time of the attack against that saved timestamp.

The multiplayer code is all in C, as Setementor mentions, and builds fine with any version of Visual C++ Express if you don't already own a copy of Visual Studio. I've been through the code before, so if you need help with stuff feel free to ping me.
_______________
Saving the world, one kilobyte at a time.

Apr 22 2008 07:43pm

Setementor
 - Jedi Master
 Setementor

Yes, that wouldn't be too difficult to do.

Apr 22 2008 07:18pm

Soundwave
 - Student
 Soundwave

Wow, thanks a LOT for your help, Setementor :)

What I want to add to ClanMod, or JA+ (or maybe to make it as an addon for other Mods) is an Anti-Laming System.

The system should start its check whenever a player without his saber out gets hit by another player's saber.
It checks how long has the player been without his saber out, and if the result is above (for example) 5 seconds, then the attacking player will show a message on his screen asking him to stop laming... if it happens again, then he is sent to the ground ("silencing", I think they call it) and a message about his laming ways is sent throughout the server.

The time-check is to prevent people from pulling back their sabers just as the other guy is hitting them to make him look like a lamer.

Is it possible to do that? ...To have something running in the background constantly looking for players with a setting of "saber_out=0" (or whatever they called that function) getting a hit... and then calling another function that check how long has that function (saber_out=0) was last modified.
And then the attacking player should be added to a counter to see if it's his second time laming... I don't know if this will be done per a player-session or until map-change (?).

Any help will be greatly appreciated! :)
Thanks.

Apr 22 2008 03:25pm

Setementor
 - Jedi Master
 Setementor

Hello there. :)

Quote:
I was wondering how do Mods work in JA, and what does it take to create one.

That depends on what kind of mod you want to create. It's usually as simple as copying and altering the file you want to make changes to, then zipping it up and renaming the .zip file to a .pk3 file.

Quote:
I see most servers use the ClanMod and some other one...

"JA+".

Quote:
I noticed some .cfg files with some settings in them

.cfg files naturally only contain configuration settings to alter the performance of the game.

Quote:
I don't know where the actual programming comes.

That's found in the [compiled] .dll files. If you want to make changes to them, you'll need to download the Official Jedi Academy SDK, alter the source files found in it and then compile it (you can find instructions for it in its readme).

Quote:
"Open Jedi Project"(OJP), which allow usage of thier work for non-commercial work, so I assume that it's open-source.

Yes; it is an open source project that many have contributed to. You can find information about it here.

Quote:
Does anyone know where can I get that source, or is it in the .pak files or somewhere else?

I'm not sure that you can; however, the creator of Clanmod did release 'Jedi Academy SDK Fixed', which contains many fixes found in Clanmod.

Quote:
And last, but I assume not least, what language do you use to program for JA?

According to the FAQ on LucasForums, Visual C.

  Login and add your comment!