Small help with modding -1 reply

  • 1
  • 2

Please wait...

dark_stealth

Czin, The god of Death

50 XP

19th April 2008

0 Uploads

305 Posts

0 Threads

#1 10 years ago

Hi. Ok I recently got JAMP source to work finally after help. Since i have no experience in C :( Could someone tell me how to get a message when you join a game. So you join a server and in console it has . Ok I hope this is the right place to ask this >_>




TFOpanda

Modder

50 XP

29th January 2006

0 Uploads

128 Posts

0 Threads

#2 10 years ago

I'm not sure of hand, but I would search (Ctrl + F, Current Project) for 'Joined the battle' Remmeber when you join a game, it already says that, you could see how that works and make your own, better still you could even edit it. Or, download OJP source and look at their MOTD code.




Guest

I didn't make it!

0 XP

 
#3 10 years ago

Are you allowed to modify OJP source and release it to the public, or is that just for their benefit so you can submit your own work to the OJP site?




TFOpanda

Modder

50 XP

29th January 2006

0 Uploads

128 Posts

0 Threads

#4 10 years ago

It's open source, as long as you give credit to them if you release it, it's fine. I don't think you can call it an OJP update or anything, you can just use their code. If that means starting from their code, it's fine too.




dark_stealth

Czin, The god of Death

50 XP

19th April 2008

0 Uploads

305 Posts

0 Threads

#5 10 years ago

Hmm do you mean client->pers.netname, G_GetStringEdString("MP_SVGAME", "JOINEDTHEBATTLE"))); because i think thats what displays when a play joins the game to people in the other game. What i want is when you join the server in console for only that person to it to say something. motd would be ok .. maybe i could make a second motd that cannot be changed in server.cfg ???




Guest

I didn't make it!

0 XP

 
#6 10 years ago

It never hurts to try changing it, just make sure you make a backup first so you don't ruin your code. If it appears to do nothing, then change it back, because it most likely effects something else.




TFOpanda

Modder

50 XP

29th January 2006

0 Uploads

128 Posts

0 Threads

#7 10 years ago

So you want a message to appear in the consle for JUST that player? Near where you found that code previously, "client->pers.netname, G_GetStringEdString("MP_SVGAME", "JOINEDTHEBATTLE")));" Put: trap_SendServerCommand( ent-g_entities, va("print \"Welcome to the battle!\n\"")); Obviously, change the text to what you want, but it'll only appear for that player.




dark_stealth

Czin, The god of Death

50 XP

19th April 2008

0 Uploads

305 Posts

0 Threads

#8 10 years ago

Thanks, thats exactly what i wanted. Also for the sake of .. people .. do you know if theres a guide for basic C programming for JA SDK ?




TFOpanda

Modder

50 XP

29th January 2006

0 Uploads

128 Posts

0 Threads

#9 10 years ago

There are a few tutorials on the code3arena website, Some of them work for academy (They're both the quake 3 engine). However, for C in the SDK, it just takes trial and experiement, you'll pick it up though.




Mikouen VIP Member

What?

145,650 XP

4th September 2005

4 Uploads

11,732 Posts

2 Threads

#10 10 years ago

Look for general C tutorials, not C tutorials specifically for JA. Because, well. No one really writes programming tutorials certain specifically for games, since the programming language is essentially the same wherever you find it, only the content differs. So, most of the tutorials out there are general purpose; having it any other way would just be silly, because it's all the same code no matter how you want to adapt and utilise it.

Once you learn the C language itself, Jedi Academy's SDK is merely an application of it. Kinda like PHP, you probably won't find tutorials which teach you PHP for the explicit purpose of making a message board script, but with what general knowledge you learn regarding PHP, you can apply what you know to your specific scenario.

Welcome to the world of code, a land of endless possibilities, and a shitload of algebra.

:salute:


I don't know how, and I don't know why, but this is totally Sheep's fault.



  • 1
  • 2