Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Quick Reply
Search this Thread
Mad Poster
Original Poster
#1 Old 26th Feb 2007 at 1:57 PM Last edited by niol : 24th Oct 2007 at 4:44 AM.
Default modding - Fence-arch: infos-sharing, ideas-mingling, etc...
Fence-arch is so much alike fences in terms of graphical contents like cres, shpe, gmnd, gmdc, txmt, txtr, lifo.
But, it has no fence xml file.
It's graphical references are mostly linked through its script fencearches.txt @ "...\EA GAMES\The Sims 2\TSData\Res\Catalog\Scripts".

Quote:
fenceArch 26
archCenterModel "fenceDeckAgedWoodArchTrellisCenter"
archEastModel "fenceDeckAgedWoodArchTrellisEast"
archWestModel "fenceDeckAgedWoodArchTrellisWest"
archPostModel "fenceDeckAgedWoodArchTrellisPost"
catalogTextIndex 18


"26" appears the numeric instance of the fencearch.

All the model statements are to link to the corresponding cres files.
So, the only fencearch consists of 4 components, 1 for the post, 1 for the central rail, 2 for the rail sides - "east" & "west".
The side models appear to be located at the same spot as the post model.

catalogTextIndex is to tell the UI to show up the "relevant" infos about the only fence-arch and probably UI-enable the only fence-arch.

"mayPlaceDiagonally true" can enable fence-arch to place diagonally. Yet, the meshes of the only fence-arch wasn't designed for this purpose.


About the pix:
I've used in-game fence posts and diagonal rails to make the "new" fence-arch in a TS2 only system.


About the attachments:
These 2 are the 2 modified scripts I did before I took these screenshots.
The fenceDeckAgedWoodArchTrellis is the default fencearch resources which
I also use it for custom-cloning.

What to solve:
I've yet to prove if certain location(s) or no location will work for custom cres files.


What I expect:
If custom cres will work out, more better crafted custom fence-archs may come out.


Why the fence-arches?
They can overlap with partitions like fences but cannot be placed unless a grid away from any wall-based partition. Diagonal versions may help solve the challenges caused by the particular partition system for fence-arch.



Related thread linkage for partition-products modding:

Partitions:
Modding InfoCenter - Partitions: walls, fences, fence arches
http://www.modthesims2.com/showthread.php?t=106473


Fences:

Is it possible to add bhavs & pie menu to a fence?
http://www.modthesims2.com/showthre...highlight=fence

New fence-need help!UPDATE 24/1 post#24
http://www.modthesims2.com/showthread.php?t=216472

Remeshed Fence
http://www.modthesims2.com/showthre...highlight=fence

What're the known links or references to correlate bhav, pie menus, OJBD, audio references, etc?
http://www.modthesims2.com/showthre...highlight=fence

Fences in lot package file:
http://www.modthesims2.com/showpost...6&postcount=513
http://www.modthesims2.com/showpost...6&postcount=517
http://www.modthesims2.com/showpost...6&postcount=532
http://www.modthesims2.com/showpost...1&postcount=466
http://www.modthesims2.com/showpost...5&postcount=534
Continuous/Contiguous No Vertical Post Fences?http://www.modthesims2.com/showthread.php?t=193824



Fencearches:
modding - Fence-arch: infos-sharing, ideas-mingling, etc...
http://www.modthesims2.com/showthre...light=fencearch
Screenshots
Attached files:
File Type: rar  fenceDeckAgedWoodArchTrellis.rar (102.7 KB, 36 downloads) - View custom content
Advertisement
The ModFather
retired moderator
#2 Old 26th Feb 2007 at 2:44 PM
I think (and this is what I meant on my last post on the Scriptorium) that Maxis changed the way the fence-arch work; in the original idea, a fance arch should have been built dynamically:
- you click, and a post is created
- then drag, and a TrellisEast is created
- then go on dragging, and multiple TrellisCenter are appended
- then release the mouse button and a WestTrellis (with post) is created.

But now, I couldn't see any TrellisCenter in my tests, or anyway no fence-arches built that way: every tile is identical to the surronding ones.

I've finally started my Journal. Information only, no questions.

My latest activity: CEP 9.2.0! - AnyGameStarter 2.1.1 (UPD) - Scriptorium v.2.2f - Photo & Plaques hide with walls - Magazine Rack (UPD) - Animated Windows Hack (UPD) - Custom Instrument Hack (UPD) - Drivable Cars Without Nightlife (UPD) - Courtesy Lights (FIX) - Custom Fence-Arches - Painting-TV - Smarter Lights (UPD)


I *DON'T* accept requests, sorry.
Mad Poster
Original Poster
#3 Old 26th Feb 2007 at 4:44 PM Last edited by niol : 26th Feb 2007 at 7:11 PM.

I'm lost... What's the exact problem(s) you're trying to describe?
I just know too little to understand...
anyway, one more screenshot...

Updated:
In the attached instance, as I estimated from what I've learnt from both walls and fences, custom fence-arches appear possible...
This is true in TS2 and up to OFB at least.

In the pix, the one with wedding-arch and a shiny ending fence-arch side is the custom fence-arch!

To test this example out, one has to dump the custom package in the downloads folder and replace the fencearches.txt @ the script folder. All fence-arches are at the end of the fence listing.

It seems the script text can't recognise the FR or any other location probably because their default location for build tools and/or other in-game graphical elements is 0x1C0532FA.
As hinted by TS2-compatible fences, fence-arches get recognised in the same manner. So quite likely, at least custom cres files have to have group strings as 0x1C0532FA. I've not tried to test if shpe files have to follow cres files in this manner, but I don't see that as important any more.

after all, the gmnd, gmdc, txmt, txtr and lifo can be in FR .
Screenshots
Attached files:
File Type: rar  fencearches-t4-werk.rar (2.5 KB, 25 downloads) - View custom content
File Type: rar  MoiFenceArchM3R001-dSUBSETNOM-dGMDC-t3-0x1C0532FA_cres-shpe-FR_gmnd-gmdc-txmt-txtr.rar (102.4 KB, 26 downloads) - View custom content
The ModFather
retired moderator
#4 Old 27th Feb 2007 at 1:15 AM Last edited by Numenor : 20th Nov 2008 at 2:05 PM.
Lol! I guess I wasn't clear earlier, and anyway I was wrong: the fence-arches are modular, and work exactly as they are supposed to.

I'll explain better (not for you, Niol, but for anyone else might want to read this notes).

Fence-Arches are built on the terrain like the fences (i.e. by dragging the build too across the terrain); but there is one big difference that makes fence-arches unique: no matter how long you drag across the terrain, the resulting fence-arch will be composed as shown in the following screenshot (I used a purposely modified mesh, it's not the original Maxis one!)


- At one end, there is the East piece (in green);
- Then, one or more Center pieces (in blue);
- Lastly, at the other end, there is a West piece (in yellow);
- Between any two pieces, a Post (in red) is drawn; though not visible, the post is drawn even between the center and the East/West terminations (you can't see it in the screenshots because it's embedded into the yellow and green parts)

All the pieces are visible in the catalog thumbnail (see screenshot below; again, the red post is not visible because hidden into the terminations).

When two sections of fence-arches touch one another, they merge into one single arch:



My other findings

1) Fence-Arches can have a custom price, catalog name and description.

In order to do that, you have to create, inside the package, a Text List with instance 0x00FF; in line 0 you put the price, in line 1 the name, in line 2 the description. Then, in the TXT file you have to add - immediately below the line "fenceArch XX" - another line like this:
catalogTextResource ExactPackageName 255
Note that the number 255 must not be modified: it refers to the instance 0xFF of the text list; as for the ExactPackageName, it's the package that contains the fence and the TextList 0xFF (omit the .package extension).

2) The Scriptorium CAN be used with the fence-arches; but at the moment it's not complete. You have to edit (only once) the file "fencearches.txt", appending to it the line: wildInclude "Scriptorium_Walls-Fences-Arches\*.*" (included the quotation marks as shown). Once done that, you can put the text files containing the data for your custom FenceArch into the folder "Scriptorium_Walls-Fences-Arches" (you can access it using the shortcut placed in your Downloads folder).
This makes much easier to add and remove custom fence-arches.

3) In my tests, so far, I've observed that both the CRES and the SHPE must be in the global scenegraphic group 0x1C0532FA. All the other files (except, of course, the Text List) can be assigned to the private scenegraphic group 0x1C050000, and referenced using the Forced Relocation.


I'm attaching the rar containing my test fence-arch (the coloured one, depicted in the screenshots) and the TXT files ready to be put in the Scriptorium folder.
Screenshots
Attached files:
File Type: rar  Numenor_FenceArch99.rar (37.0 KB, 26 downloads) - View custom content

I've finally started my Journal. Information only, no questions.

My latest activity: CEP 9.2.0! - AnyGameStarter 2.1.1 (UPD) - Scriptorium v.2.2f - Photo & Plaques hide with walls - Magazine Rack (UPD) - Animated Windows Hack (UPD) - Custom Instrument Hack (UPD) - Drivable Cars Without Nightlife (UPD) - Courtesy Lights (FIX) - Custom Fence-Arches - Painting-TV - Smarter Lights (UPD)


I *DON'T* accept requests, sorry.
Mad Poster
Original Poster
#5 Old 27th Feb 2007 at 3:59 AM Last edited by niol : 27th Feb 2007 at 5:11 AM.
Now, I finally see what you mean...
The post and the side locations are overlapping as it was planned, and that's what I meant "The side models appear to be located at the same spot as the post model."
Normally, if the meshes of the East and west are the same as or larger than that of the post, they're likely to cover the post (as shown in some of above pix I posted, especially the ones about the WhiteRoyalCourtyardFencing posts).
The posts get covered at the terminals. The east and west parts only exist at the terminals. So, a directional fence-arch is possible.
After all, some cool designs can be done out of this overlapping property.

Thus, we're basically talking the very similar thing in this aspect.
So, meshers can just build them up to the parts @ positions similar to the default ones for the parts to connect while saving resources.

The fencearch text references I can find is @
...\EA GAMES\The Sims 2\TSData\Res\Text\build.package
Thanks for your tip to show how to add a new text list for new fence-arches... Gonna try...

Mind if I use your custom fence-arch for my personal twists...? :D

If the post is thinner and shorter than the east and west posts, more variations am I seeing
The ModFather
retired moderator
#6 Old 27th Feb 2007 at 8:38 AM
Sure, do whatever you want with my test fence (that btw has the post shorter and thinner then the east/west, like you describe).

I'd like to know if there is a way to make the fence-arches "climb up" the hills, like the black iron fence; currently, it cuts the ground, making it flat, like a wall.

I've finally started my Journal. Information only, no questions.

My latest activity: CEP 9.2.0! - AnyGameStarter 2.1.1 (UPD) - Scriptorium v.2.2f - Photo & Plaques hide with walls - Magazine Rack (UPD) - Animated Windows Hack (UPD) - Custom Instrument Hack (UPD) - Drivable Cars Without Nightlife (UPD) - Courtesy Lights (FIX) - Custom Fence-Arches - Painting-TV - Smarter Lights (UPD)


I *DON'T* accept requests, sorry.
Mad Poster
Original Poster
#7 Old 27th Feb 2007 at 10:13 AM Last edited by niol : 1st Mar 2007 at 4:59 AM.
fence-arches still behave in-between walls and fences...! &

Guess what? As you might have imagined what it's like if (Maxis had set the only fence-arch to do so... while probably being too lazy to make the static centre part to be twistable like rails... )

Yeah, that's true this is yet another limitation for the fence-arches...
OK, anyone is up for a tech challenge to alter that?

More pix to show... :D

Sorry, I forgot about the another statement completely after getting too excited about the custom fence-arches..!
Thanks with virtual dish of your likes..., Numenor. :friendly hugs:

Still I forgot to state out the cheat boolprop constrainfloorelevation false can get this fence arch "deformed"...
Screenshots
Back to top