Title: SimPE experts -- Is there a find/replace option? Post by: jrd on 2006 April 03, 22:28:14 Okay this is a question for someone more experience with SimPE than I. Also asked at the SimPE forum.
I am trying to hide the mascot outfits from OFB, and have succesfully extracted all their property sets into a new package. To hide the outfits I have to append 1 to all the flags. Is there an easy way to do this, rather than going by them one-by-one and changing flag 0x00000008 to 0x00000009, flag 0x0000000A to 0x0000000B etc.? Basically I want to replace any occurence of a given string inside a package with a different string, but I don't see a way to do that. I really don't feel like going over 342 lines one-by-one... Title: Re: SimPE experts -- Is there a find/replace option? Post by: syberspunk on 2006 April 03, 23:03:54 I'd love to have this feature as well, but have yet to find anything like this. Let me know if you do. :P Otherwise, you may have to suggest it to Quaxi, if it hasn't already been suggested.
It's a pain when trying to edit BHAVs and you want to replace all the instances of something in a similar fashion. It'd be great if we could do a global replace rather than having to hunt and peck each line of code. But I wouldn't know if this would even be feasible. :-\ Ste Title: Re: SimPE experts -- Is there a find/replace option? Post by: jrd on 2006 April 03, 23:08:01 Ah well I'm at line 50 now... will continue tomorrow. I'll get this mod (mascot hider) out this week probably.
Hopefully there /is/ a find/replace I am overlooking though, that'll save me some time and allow for more testing. (I probably forgot a few uniforms -- there's the chef/baker, ninja, apron, aviator, gorilla, diver, knight and?) Title: Re: SimPE experts -- Is there a find/replace option? Post by: angelyne on 2006 April 04, 01:51:58 How about using a hex editor. Would that work?
Title: Re: SimPE experts -- Is there a find/replace option? Post by: jrd on 2006 April 04, 14:07:17 angelyne, you are brilliant. :D
Title: Re: SimPE experts -- Is there a find/replace option? Post by: jrd on 2006 April 04, 14:30:25 I have a working version of the mod now at VS and at MTS2. Thanks again for the advice!
Title: Re: SimPE experts -- Is there a find/replace option? Post by: atavera on 2006 April 04, 14:47:24 Hex editors work great for BHAVs too if you need to replace some GUIDs :) Maxis loves to make objects that require the original GUID by making every other line a Test Object Type GUID...really annoying when you want a clone which will have different GUIDs :-X
Title: Re: SimPE experts -- Is there a find/replace option? Post by: angelyne on 2006 April 05, 19:30:50 Hehe glad to help. I saw your mod already. That is going to be pretty useful!
|