67434d25aae2b

Page: [1] 2 »
67434d25abf79
4 Guests are here.
 

Topic: How do I edit enemy HP? Read 4349 times  

67434d25ac5e9Who dat

67434d25ac652
How do I edit enemy HP?

I can't understand the ShockEd tutorial...
« Last Edit: 15. January 2017, 00:29:40 by Moderator »

67434d25ac999ThiefsieFool

Re: Re: SS2 TF's Secmod 3
67434d25ac9ee
This still an issue? Ok:

Open a .mis file, open the object hierarchy (F5), find the monsters under Physical -> Monsters, individual monsters not categories like Robots, edit these properties on them:
Game -> Damage Model -> Hitpoints
Game -> Damage Model -> Max Hitpoints

Save the gamesys as shock2.gam

67434d25acb0evoodoo47

Re: Re: SS2 TF's Secmod 3
67434d25acb63
this is a job for a dml, no need to edit directly for such a trivial change.

67434d25acbfeWho dat

Re: Re: SS2 TF's Secmod 3
67434d25acc4a
What's a DML? What should I use, a DML or edit the thing manually?

Sorry for being a noob...

67434d25accfbvoodoo47

Re: Re: SS2 TF's Secmod 3
67434d25acd48
a text file that allows you to modify values without actually editing anything directly, but you need basic editor knowledge to make those.

what do you want to do exactly? I'll post an example.

67434d25acdddWho dat

67434d25ace27
Basically I want every enemy in the game to be stronger. In terms of HP and to a lesser extent, damage.

67434d25acfacvoodoo47

67434d25acff6
ok, first, you need to find what the monster archetype is, lets go with pipe hybrid - the archetype in secmod is -397, its hit points and max hitpoints have a value of 16. lets change that - create a text file and paste in following;

Code: [Select]
DML1

//changing og-pipe hitpoints to 26
ObjProp -397 "HitPoints"
{
"" 26
}
ObjProp -397 "MAX_HP"
{
"" 26
}

save, and rename the file to gamesys.dml (windows must be configured to show file extensions), place the file into your Secmod folder. the pipe hybrid's hitpoints will now receive the new value next time you start the game. now you can change the value by editing the text file as you see fit.

this needs to be done for each monster (archetype) you want to modify - as mentioned, basic editor knowledge is required to find and view them in the editor. you will have to install Shocked Basic (SS2tool will do it for you), load Secmod with mod manager, start the editor exe, and load any Secmod map. press F3, type -162 and hit enter. each monster that has hitpoints set can be dml edited by copy pasting the code above and replacing the archetype id (-397 in this case), so if you also want to edit the shard hybrid, you will have this;
Code: [Select]
DML1

//changing og-pipe hitpoints to 26
ObjProp -397 "HitPoints"
{
"" 26
}
ObjProp -397 "MAX_HP"
{
"" 26
}
//changing og-crystal hitpoints to 36
ObjProp -4812 "HitPoints"
{
"" 36
}
ObjProp -4812 "MAX_HP"
{
"" 36
}

etc.

67434d25ad095Who dat

67434d25ad0e2
holy shit, that looks complicated.

Would your method or TF's be easier?

67434d25ad1cbvoodoo47

67434d25ad219
everything looks complicated at first.

a dml is a bit more tedious to set up, but once ready, it's much easier and faster to change things in the dml (especially in this case, when you'll be changing things a lot until you get what you want), and there is no chance of screwing the gamesys (the file that controls the mechanics) up - in case something goes wrong, you can edit the dml file or discard it completely, no permanent damage done.

67434d25ad2c5Who dat

67434d25ad30f
I think I'll try TF's method first. :P

If I edit one .mis, will I have to edit them all? How does a .mis turn into a gamesys?

67434d25ad3acvoodoo47

67434d25ad3f4
it doesn't - gamesys is loaded automatically when you open a mission. once the archetypes are edited, you need to save the gamesys. and hope it won't blow up.

67434d25ad479Who dat

67434d25ad4c5
So do I need to edit all the .mis's?

67434d25ad56avoodoo47

67434d25ad5ba
no, but you need to open it. you can't edit the gamesys without that.

67434d25ad68aWho dat

67434d25ad6d4
Ah, okay. I guess what I'm trying to figure out is how opening a random .mis file will allow me to save it as a gamesys. Are they two different types of files or no?
67434d25aea13
When you open an active mis file the active gamesys (which is a different file) will be loaded automatically. So you can then save the gamesys.

Loading and saving the gamesys by itself (without a mis file) would result in failure.

67434d25af0b3Who dat

67434d25af114
Oh, that makes sense. Thanks.

Gonna get around to editing this pretty soon. Hope y'all will be around if I have questions!

67434d25af226Who dat

67434d25af278
So I found Physical, but there's no tree under it called "monsters."

I opened up hydro1.mis, press F5 and it shows me trees under Archetypes. I'm under the "Missing" tree and on expanding "Physical," it gives me another tree that says "Missing." Expanding that gives another tree that always says "Object."

This goes for every tree, by the way - it always ends up at Missing -> Object and I can't do anything with that. Thoughts?

67434d25af34dWho dat

67434d25af39c
Is this the Monsters tree I am supposed to expand?

http://imgur.com/a/xe8hZ

67434d25af45evoodoo47

67434d25af501
no - no idea what is going on there and what do you have opened, but the monster archetype id is -162. anyway, before you do anything else, you need to install the latest version of the editor via SS2tool (this is required, you can't edit Secmod with the old editor).

67434d25afcc7Who dat

67434d25afd29
Ah, yeah, NOW I see what I'm supposed to see.

Only, no changes seem to occur. I've been fiddling with every enemy's HP for about 30 minutes now and I can't get the changes to stick. For shits and gigs I changed the grub HP to 50 to see if nothing really was sticking or if it was something TF changed about Secmod 3.0 vs other versions and the HP changes just don't work.

To clarify - I edited under Physical -> Monsters -> then every monster/robot. Grub, for example, was under Flammable, Annelids, Non-Swarming Annelids, Weaklings, Grubs, jumpygrubs, yeah? Editing their HP under damage model does nothing.

Kinda confused. Also, just wanted to say thanks for all your continued help, especially voodoo.

67434d25afe28voodoo47

67434d25afe7e
sure. did you save the gamesys after applying the changes? under file/save gamesys.

also, as there are four different grub types there, you might have been editing one and then fighting another. edit just the grub, and when ingame, open the console (shift+;), and type summon_obj grub
« Last Edit: 19. January 2017, 16:40:09 by voodoo47 »
67434d25b01c8
Does the "start a new game and don't load" also apply to gamesys changes or only to ones made with DMLs?
That might be a reason.

67434d25b02e2Who dat

67434d25b033a
Yeah, I saved afterwards. Also did what Olfred said above. After every change of the gamesys I've started a new game, which is what I'm supposed to do, right?

I also don't see 4 types of grubs. Here's what I see:

http://imgur.com/a/Y6pfg

When I edit Grub -5181, it changes the HP for the bottom two Grubs. That was the 50 HP one, and it didn't work.

67434d25b05c3voodoo47

67434d25b0616
you don't have any map loaded on that last picture. a (any) map needs to be loaded even if you want to edit just the gamesys.

anyway, opened the earth map, changed both hp and maxhp on grub -182, spawned a grub, it had 50hp.
Does the "start a new game and don't load" also apply to gamesys changes or only to ones made with DMLs?
That might be a reason.
depends on the change, but if you want to be 100% sure, start a new game.
4 Guests are here.
Aktuelle Kamera berichtet: "Wie TASS meldet, hat sich im Kernkraftwerk Tschenobyl in der Ukraine eine Havarie ereignet. Einer der Kernreaktoren wurde beschädigt. Es wurden Maßnahmen zur Beseitigung der Folgen der Havarie eingeleitet."
Page: [1] 2 »
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
67434d25b5184