MeleeMaster Posted May 30, 2006 Share Posted May 30, 2006 Lol, sorry if I keep asking hard to answer questions. You see, I learned how to easily make NPCs and change their behavior ect. I was making a blue cultist that was on the lightside and gave it like 400 force and some other nice force powers like mind trick (to see if NPCs know how to use mind trick) and having some fun. I gave him melee as you would expect. Unfortunately when I spawned my cultist buddy he behaved like a gran boxer and didn't use his force powers but rather used the gran style of punching. I made sure he was the right class which was the reborn class (the class you gives sets their general behavior) and all that. Any help with getting him to act like a cultist would be appreciated. Also, I'm just wondering, whenever I give an NPC melee, they punch like grans, is it possible to get yourself to punch like that? I know its probably hard coded NPC behavior, but is it possible to give NPCs normal melee (what you get when you do give weapon_melee)? Link to comment Share on other sites More sharing options...
MDN14 Posted May 31, 2006 Share Posted May 31, 2006 I dont know much about NPCs, but did you try making his class "jedi" instead of reborn? Maybe it would act differently than just punching and actually use mind trick. Link to comment Share on other sites More sharing options...
MeleeMaster Posted May 31, 2006 Author Share Posted May 31, 2006 Yeah I have but thx for the suggestion. Lol, I think I'll just have to pretend that they're using the force to enhance there punches. I got them to use force but when I'm upclose they still think they're grans. Link to comment Share on other sites More sharing options...
MeleeMaster Posted June 7, 2006 Author Share Posted June 7, 2006 I don't mean to double post but this is important, you see I think it's kinda obvious that some npcs have a little bit of special AI assigned to their npc files like saboteurs who use cloaking and cultists who use force (and force only) which is hard coded. But while I was searching through this forums I found a topic discussing how to give npcs the stealth/cloaking effects and at first the person couldnt get it to work but he put his new npc in the same .npc file that the npcs who use stealth are in and he got his npc to use stealth. So I think that AI (the special AI thats hardcoded to some npcs) is assignd to certain npc files rather than entries in an .npc file. So I think I'll finally be able to get my cultist to act like a force user. Â EDIT:Heres where the thread is http://www.lucasforums.com/showthread.php?t=123389 And also it has something to do with the name of each entry in an .npc file. My cultist still aint workin Link to comment Share on other sites More sharing options...
razorace Posted June 8, 2006 Share Posted June 8, 2006 From what I remember about the NPC AI code, the NPCs use specific code when using either the lightsabers or melee. As such, giving them melee or a lightsaber will override their NPC class select. Link to comment Share on other sites More sharing options...
MeleeMaster Posted June 9, 2006 Author Share Posted June 9, 2006 It seems to go by random when I give npcs melee because certain npcs want to be smart and chase me and try to knock me out while certain ones like to try and punch but stand still as if something is keeping them from moving. Also I've learned that making SP code changes are possible but barely because there's one SP/MP (it has an SP side and MP side) mod that is called the Chaos Force MOD 2 that has certain features that go way beyond the limitations of what can be edited in single player such as completely new animations and saber melee styles that are added rather than replacing old anims. and when I downloaded it I didnt open up its .pk3 inside the .zip but was stunned to see it came with new modified game .dlls which included the jampgamex86.dll which is obviously for MP which is no surprise but also came with a modified cgamex dll and uix(cant remember the whole name) dll. So SP code changes are likely possible but require great code language skills and understanding of .dlls. One time I tried to decompile the jagamex86.dll which I think is the main dll for the SP side of the game and according to the program I was using it said the dll was in C++. And also I think its possible to edit and add new npc AIs and values without too much trouble according to here http://mt-wudan.com/forums/viewtopic.php?t=454. Also could someone please tell me how to code some new npc AI for SP if it's possible? And would it be possible for me to get the game to assign certain special NPC behavior (the supposedly hardcoded AI used for melee fighters) to certain NPCs? Thx for all your help everyone whos been answering my hard to answer questions over the weeks! Link to comment Share on other sites More sharing options...
razorace Posted June 9, 2006 Share Posted June 9, 2006 mmm, got a link for this Chaos Force MOD 2? Link to comment Share on other sites More sharing options...
MeleeMaster Posted June 9, 2006 Author Share Posted June 9, 2006 Here's a link: http://lucasfiles.com/?s=&action=category&id=92 Just click on one, there's two but one of them is just an animation fix I guess. Could someone give me some help on NPC AI and behavior though? Im kinda lost with the way some of my melee using npcs have been acting. Link to comment Share on other sites More sharing options...
razorace Posted June 9, 2006 Share Posted June 9, 2006 Ok, I looked into it and the cgamex85.dll and the uix86.dll are actually the MP versions of those dlls. Plus, the mod only modifies the existing animation defines rather than creating new ones. Sorry, but this looks like a dead end. Link to comment Share on other sites More sharing options...
Griswald Posted June 9, 2006 Share Posted June 9, 2006 I may be mistaken, but I believe SP and MP use the same UI and CGAME code, and that the only main changes are the server (I could be mistaken, but I believe this is so) Link to comment Share on other sites More sharing options...
MeleeMaster Posted June 9, 2006 Author Share Posted June 9, 2006 Could someone please help me with the NPC AI though because that's what this topic is about. Link to comment Share on other sites More sharing options...
Griswald Posted June 10, 2006 Share Posted June 10, 2006 No offense, but you absolutely positively CANNOT make SP code changes without reverse-engineering (hacking) the dll's. Chaos Force Mod (upon further inspection), does indeed contain .dll files, but they are original and UNMODIFIED jka dll's (compare the filesizes to the ones in the JKA Base folder, exactly the same... modified dll's would HAVE to be different sizes, impossible to remain identical with any kinda code change to this kinda calibur) Â In JKA, upon loading any new mod, it copies the dll files it loads into the mod folder. The author must have packaged the original DLL's in mistake. Upon further inspection of the pk3, there are several modified .npc and .sab files, as well as other modified game CONFIG files, and effects (created with effectsed). In order to author your own custom AI, you MUST have access to game code, otherwise it must be scripted through icarus (the only thing I can think of atm) Link to comment Share on other sites More sharing options...
razorace Posted June 10, 2006 Share Posted June 10, 2006 I may be mistaken, but I believe SP and MP use the same UI and CGAME code, and that the only main changes are the server (I could be mistaken, but I believe this is so) I'm pretty sure that's not the case. The SP AI code refers to cgame stuff directly and to functions that aren't in the MP cgame code. Link to comment Share on other sites More sharing options...
MeleeMaster Posted June 11, 2006 Author Share Posted June 11, 2006 Guys, I dont necesarily mean coding completely new AI but rather making it so the game would assign premade AI to certain npcs. Is there any way to get the game assign (premade) certain AI to certain melee using npcs? Because as far as I know the game mixes and matches AI for my melee users. For example my cultist likes to constantly force lightning and push me and then when I get up close take a few cheap shots with his hands while a new wookie npc I made that uses melee cant seem to move from the exact spot from where I spawn him. Link to comment Share on other sites More sharing options...
MDN14 Posted June 11, 2006 Share Posted June 11, 2006 probably has to do with range issues on the melee weapon itself and with what force powers you gave him. If the weapon projectile range of melee is set to the normal weapon projectile range, it is trying to hit you from where it is standing but is just swinging at the air, even though the actual weapon only has a small area in front of the player that it damages the enemy. Maybe I am just being stupid here, but I seem to remember seeing something like that with the melee weapon back when I used to tinker around a small bit with the code. Link to comment Share on other sites More sharing options...
MeleeMaster Posted June 11, 2006 Author Share Posted June 11, 2006 Thx, I'll toy around with the range and see if that helps. Cause one time I made an imperial officer with melee and he actually chased me. I'll have to do this stuff when I'm home because for the past 3-4 days I've been away but the hotels I've been staying in have had computers that you can use freely. I guess I better come to Utah more often. Â EDIT:I guess I better have a look around in the MP SDK because I can look at the AI code and the way melee works, I mean it really cant be that much different in MP than it is in SP, oh yeah, I have to wait a few days till I get home. Link to comment Share on other sites More sharing options...
razorace Posted June 11, 2006 Share Posted June 11, 2006 Actually, the MP version of the AI code is just a much older version of the SP code. They are fairly different from each other. Â Anyway, the difference between the reborn and the wookee NPC is that the reborn was set up as a jedi character. There's a special situation where the force powers based reborn only have melee, but use their force powers as their main weapon. Sorry I can't be more specific, it's been a while since I've dealt with that code. Link to comment Share on other sites More sharing options...
MeleeMaster Posted June 12, 2006 Author Share Posted June 12, 2006 But do you or does anybody know if theres a way to assign specific special AI that Raven already coded to certain melee using npcs? Because otherwise I'll just have to keep tweaking the .npc files till the game gets it right because for me it seems to mix and match the way they act and then just keep doing that till they act the way I want them to. Link to comment Share on other sites More sharing options...
razorace Posted June 12, 2006 Share Posted June 12, 2006 well, uh, you'd have to get the correct NPC class/weapon combination to work. Specifically what are you looking for? Link to comment Share on other sites More sharing options...
MeleeMaster Posted June 12, 2006 Author Share Posted June 12, 2006 But I thought you said when you give an npc melee it completely ignores the class you gave it. I know it has some effect on how they act but it gets kinda weird ingame though because like I said since the npc doesnt really have any special AI code to refer to its seems kinda randomized how they act. I'm not asking you specifically razorace but rather asking anybody if they have a clue on how to get player-made npcs to refer to certain AI thats probably hardcoded. Thx though for all your help razorace. And for example what I'm looking for is that when I make a cultist that he'll actually use the force powers I gave him rather than acting like a stupid gran. I made an exact copy of the cultist_lightning in the exact same .npc file and all I did was make him good and give him a few more powers and when I spawned him he did not even use any of his force powers. If you read my 2-3 post I somehow got one of my cultists to actually use force powers and heck he was using lightning more then darth sidious and then when I got up close he would maybe do a quick punch or two then he go all out with force again but there was still one problem, he couldn't seem to move from the spot where I spawned him. I want to make npcs that do act like grans that chase after me with their fists up and then when far away bring out their long range weapon. Like I'd want to make a wookie that acts just like that except with a bowcaster instead of detonators. I'd like to make my cultists be able to do fast punches and directional kicking but thats like impossible. Also I know its possible to get npcs to do things using icarus as said above. Would it be possible to make them act certain ways and in theory give them new AI using behaved. Because Ive opened it up before and it seems possible. But as far as I know behaved only opens .icarus files. I know its been done but how do you open, edit and create npcs using BehavEd Link to comment Share on other sites More sharing options...
razorace Posted June 12, 2006 Share Posted June 12, 2006 Oh, ok. Your problem sounds like a navigation problem more than the AI behavior that is being used. Did you try these different npcs at the same location on your map?  The reason why I ask is because the NPCs heavily rely on the NPC waypoint system to be able to navigate more than a few feet from their spawning location. In additon, you can ICARUS scripting to make them do patrols and so on.  As for the melee/class behavior situation, I actually looked it up and here's what I discovered.... Class Reborn + Melee = Jedi AI Enemy Team + Themals OR Melee = Gran AI Friend Team = Whatever AI the NPC's class is  I know, it's a bit weird, but that's how the SP code is configured. I hope that helps.  P.S. Please use more paragraphs. One giant paragraph is very hard to read. Link to comment Share on other sites More sharing options...
MeleeMaster Posted June 12, 2006 Author Share Posted June 12, 2006 Thx a bunch. That really helps. I'm going home tommorow and then I'll get to do some experimentation alon with BehavEd. How do you use BehavEd though on npcs since it can only open icarus files? Link to comment Share on other sites More sharing options...
MDN14 Posted June 13, 2006 Share Posted June 13, 2006 BehaveED makes the script files, and you have the NPCs use the script that you made for them. I dont remember the key to use though on the NPCs themselves, someone else around here probably does though. Link to comment Share on other sites More sharing options...
MeleeMaster Posted July 4, 2006 Author Share Posted July 4, 2006 I've found out a few more things about behavEd and know I know you can basically almost create new AI with it. For example I could never seem to figure out how to get gun using cultist to jump and use force powers but I saw a folder named scripts that had a script named cultist_jump. But I have a problem. BehavEd only uses .icarus files while all the game scripts are in .ibi format which is a problem. Also, I'm really tired of how much damage punches do when npcs do them. Each punch does 20-30 damage while the blaster pistol does around 10 damage and the rifle 20 damage. I know Raven probably did it that way to simulate gran punches hurting a lot because of their big hands mainly because thats the only melee using npc Raven made that actually punches. But after seeing the movies and playing some other star wars games Gran hands are no where near that big. In some games they were kind of small. Also how do you get npcs to use scripts without map editing because I can not map edit. Link to comment Share on other sites More sharing options...
MDN14 Posted July 4, 2006 Share Posted July 4, 2006 You make the script in BehavED and then compile it into an ibi file. Just hit the compile button and it makes the file for you. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.