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 >_>
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.
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?
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.
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 ???
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.
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.
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 ?
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.
4th September 2005
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.
I don't know how, and I don't know why, but this is totally Sheep's fault.