More Awesome Than You!
Welcome, Guest. Please login or register.
2024 November 25, 20:58:36

Login with username, password and session length
Search:     Advanced search
540287 Posts in 18067 Topics by 6545 Members
Latest Member: cincinancy
* Home Help Search Login Register
+  More Awesome Than You!
|-+  TS2: Burnination
| |-+  The Podium
| | |-+  SimPE experts -- Is there a find/replace option?
0 Members and 1 Chinese Bot are viewing this topic. « previous next »
Pages: [1] THANKS THIS IS GREAT Print
Author Topic: SimPE experts -- Is there a find/replace option?  (Read 4190 times)
jrd
Terrible Twerp
****
Posts: 2498



View Profile
SimPE experts -- Is there a find/replace option?
« on: 2006 April 03, 22:28:14 »
THANKS THIS IS GREAT

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...
Logged
syberspunk
Heretic
Terrible Twerp
****
Posts: 2365


ISTJ - what a crazy random happenstance


View Profile WWW
Re: SimPE experts -- Is there a find/replace option?
« Reply #1 on: 2006 April 03, 23:03:54 »
THANKS THIS IS GREAT

I'd love to have this feature as well, but have yet to find anything like this. Let me know if you do. Tongue 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.  Undecided

Ste
Logged

jrd
Terrible Twerp
****
Posts: 2498



View Profile
Re: SimPE experts -- Is there a find/replace option?
« Reply #2 on: 2006 April 03, 23:08:01 »
THANKS THIS IS GREAT

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?)
Logged
angelyne
Obtuse Oaf
***
Posts: 907



View Profile
Re: SimPE experts -- Is there a find/replace option?
« Reply #3 on: 2006 April 04, 01:51:58 »
THANKS THIS IS GREAT

How about using a hex editor.  Would that work?
Logged
jrd
Terrible Twerp
****
Posts: 2498



View Profile
Re: SimPE experts -- Is there a find/replace option?
« Reply #4 on: 2006 April 04, 14:07:17 »
THANKS THIS IS GREAT

angelyne, you are brilliant. Cheesy
Logged
jrd
Terrible Twerp
****
Posts: 2498



View Profile
Re: SimPE experts -- Is there a find/replace option?
« Reply #5 on: 2006 April 04, 14:30:25 »
THANKS THIS IS GREAT

I have a working version of the mod now at VS and at MTS2. Thanks again for the advice!
Logged
atavera
Asinine Airhead

Posts: 10


View Profile
Re: SimPE experts -- Is there a find/replace option?
« Reply #6 on: 2006 April 04, 14:47:24 »
THANKS THIS IS GREAT

Hex editors work great for BHAVs too if you need to replace some GUIDs Smiley  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  Lips sealed
Logged
angelyne
Obtuse Oaf
***
Posts: 907



View Profile
Re: SimPE experts -- Is there a find/replace option?
« Reply #7 on: 2006 April 05, 19:30:50 »
THANKS THIS IS GREAT

Hehe glad to help.  I saw your mod already.  That is going to be pretty useful!
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.028 seconds with 18 queries.