|
Development Forum |
 |
| best way to do small cos edits? | |
|  The Mossy Shee
Jesseth
 

|
10/23/2014 | |
I have some plant agents I want to do small edits to, essentially because they either massively overpopulate, or don't survive unattended.
The things i want to change are very small, stuff like
'subr grow
doif pose le 2
setv va00 pose
addv va00 1
pose va00
wait rand 600 700'
Where I would have added the final line. Or changing seed output from rand 2 4 to... let's say 3 6.
I've tried opening the agent files up in a text editor and manually changing the code, but I noticed something that's not ideal- when I do that for agents that have a DS and a C3 cos, even if I make sure the text in both is identical, when I replace the agent with my edited one it will no longer show up in the docking station agent injector, and only in C3.
Perhaps it's as simple as it being better if I decompile the agents, edit the DS&C3 cos files individually and recompile, but any advice?
The Mossy Shee & Co |
 Peppery One
Papriko
    
|
10/23/2014 | |
When I understood you right, then you just open the agent file itself in the text editor, without decompiling, yes? That is a bad idea. I am still surprised that the C3 versions still worked. Agents contain some meta-data that a normal text editor can't handle properly by default.
You should definitely decompile, edit and then recompile. I personally prefer Monk, part of jagent, for this. Just set it to "PRAY Source" mode and drop in the agent. To recompile, set it to "PRAY Chunk" and drag the .txt file inside the new folder into Monk.
Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis... |
 Prodigal Sock
Ghosthande
    

|
10/23/2014 | |
^ This, exactly.
An agent isn't just text, it is a compilation of a bunch of different file types into one package. Agents usually include sprite files, sound effects, etc. The fact that any version of an agent would continue to work after being edited in a plain text program is kind of a miracle.
In fact, I'd bet that if you deleted such an agent's sprites/sounds from your game, and then tried to inject it, the results would be monstrous. ![[ntongue] [ntongue]](/images/smilies/emot_tongue.gif)
 |
 The Mossy Shee
Jesseth
 

|
10/23/2014 | |
yeah I figured that's what I'd need to do. For the record though it does seem like at least for c3 I can actually 'write' into the agents straight up, even if it isn't recommended.
In fact come to think of it, I've actually done that to a metaroom without incident before too. When the lovebirds in terra pluvialis were wildly overpopulating and leaving 'stuck' nests everywhere, I straight up just opened the agents file in text edit and removed the script telling the metaroom to spawn them in, and it worked perfectly.
The Mossy Shee & Co |
|