When testing - re-building vs no build ?

Discussions about Coding and Scripting
Post Reply
Red_Fist
Godlike
Posts: 1540
Joined: Sun Oct 05, 2008 3:31 am

When testing - re-building vs no build ?

Post by Red_Fist » Wed Oct 10, 2018 3:22 am

I never thought about this till just a while back.

But what things do you need to build for, ?

Say if I change properties of actors, set a counter to 4 instead of 2.
Would that need to need rebuilding.? Or if I changed a event or tag.

So I just wanted to know a rule, or general rule(s) if I change some actor(s) properties, which actors don't require rebuilding.?

Now I do realize lighting, and paths, and other things need to be rebuilt, what vs what. Or if I change a property would only a save be needed ?
Binary Space Partitioning

User avatar
Barbie
Godlike
Posts: 1727
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: When testing - re-building vs no build ?

Post by Barbie » Wed Oct 10, 2018 4:35 am

As the UnrealEd's menu says: build is needed for changes at brushes, light and paths - paths depend on NavigationPoints and Inventory items. I'm not sure if changing TriggerLight's properties need rebuild, too.
But changing code or properties that are read at run time, take effect without a rebuild. Otherwise patching a map while it is loaded wouldn't be possible.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

User avatar
sektor2111
Godlike
Posts: 4162
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: When testing - re-building vs no build ?

Post by sektor2111 » Fri Oct 12, 2018 6:31 am

Partial agree, when you do a small change to a light, you don't need to touch paths and brushes, why to screw up other "build" if you need that small light change ? Else inventories added post-pathing build are never hurt, this will prevent a crap-ton of paths added and borks created in such spots. You have an ammo initially placed in location and then post-pathing you can add more ammo preventing other InventorySpot actors added and causing pain when are too many and too close each-other WITHOUT to rebuild paths, unless you delete some Nav'Point. If replacements in mods are like in year 2000 that's another story as long as they are having only 2 options: marked or held - nothing is held when comes out of a Decoration and neither marked - lousy coding and without to copy more data needed from replaced item.
As evidence is that I can attack some lights in run-time without to screw A.I. or brushes proving that light is "toucheable" with Scripting and won't hurt. I don't recall in how many maps I tweaked lights in run-time but I recall one: MH-2MuchHP - way too bright in battle arena and a lot of dark in last room when I spawned a custom light in run-time (only in client).

Edit:
Perhaps I will have some inspiration in making a sort of map with an INI file where can be configured lightning here and there, and then I'll be curious how many people will complain about lightning because last time I saw an obsession for lights. You don't like lights ? Good, do your setup then: color, radius, brightness, etc. But before to do something I'll look into replication for these actors... Anyone can try this if wants something different.

Red_Fist
Godlike
Posts: 1540
Joined: Sun Oct 05, 2008 3:31 am

Re: When testing - re-building vs no build ?

Post by Red_Fist » Sun Oct 14, 2018 7:40 pm

Barbie wrote:As the UnrealEd's menu says: build is needed for changes at brushes, light and paths - paths depend on NavigationPoints and Inventory items. I'm not sure if changing TriggerLight's properties need rebuild, too.
But changing code or properties that are read at run time, take effect without a rebuild. Otherwise patching a map while it is loaded wouldn't be possible.
Wish I knew or thought to ask years ago, I hit rebuild at every tiny thing :oops:
Binary Space Partitioning

JackGriffin
Godlike
Posts: 3766
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: When testing - re-building vs no build ?

Post by JackGriffin » Mon Oct 15, 2018 2:58 am

It's actually a good habit to have. Countless times I've moved a brush I had highlighted and wasn't aware and the rebuild showed the changes. If you catch it that fast you can easily fix it but small misalignments that you don't catch can compound over time.
So long, and thanks for all the fish

User avatar
Hook
Masterful
Posts: 705
Joined: Tue Apr 22, 2008 11:21 pm
Personal rank: UT99 Promoter/Admin
Location: Minnesota USA
Contact:

Re: When testing - re-building vs no build ?

Post by Hook » Mon Oct 15, 2018 5:24 am

Yes, this is a good thing to know!
I figured this out years ago when I merely needed to do some changes to a few actors and creatures in some of my maps.
With those edits you merely have to do Saves to the map. No rebuilding anything.
Also, if you are only changing lighting or pathing, you can just do lighting rebuild or rebuild paths, as what may be the case.
This has also worked well in maps where the brushes have been obfuscated. (or deleted) :tu:
=Hook=(Member# 626)
Active Forums: http://hooksutplace.freeforums.net
UT99 Server -> CROSSBONES Missile Madness {CMM}

* Newest Versions of: PRO-Redeemers | PRO-SNIPER-Redeemers | PRO-SEEKER-Redeemers <-(the Original)
and Now with FOOD FIGHT and Frying Pan arena !!!
IP: 68.232.181.236:7777
{CMH} CROSSBONES Monster Hunt (MH) by Mars007 (The Original) - IP: 108.61.238.93:7777

User avatar
Feralidragon
Godlike
Posts: 5117
Joined: Wed Feb 27, 2008 6:24 pm
Personal rank: Work In Progress
Location: Liandri

Re: When testing - re-building vs no build ?

Post by Feralidragon » Mon Oct 15, 2018 1:48 pm

I just want to point out that when you add a light, you should rebuild the BSP before rebuilding the lighting, otherwise meshes generally won't be affected by the newly added light, so they will remain completely dark in the area you added the new light on.

I don't know why is this, but there's probably a reset needed for meshes on the overall BSP and lighting that only a BSP rebuild provides for meshes to be lit up by the new lights.

User avatar
Hook
Masterful
Posts: 705
Joined: Tue Apr 22, 2008 11:21 pm
Personal rank: UT99 Promoter/Admin
Location: Minnesota USA
Contact:

Re: When testing - re-building vs no build ?

Post by Hook » Sat Oct 20, 2018 9:32 pm

Yes, good point Ferali! :tu:
=Hook=(Member# 626)
Active Forums: http://hooksutplace.freeforums.net
UT99 Server -> CROSSBONES Missile Madness {CMM}

* Newest Versions of: PRO-Redeemers | PRO-SNIPER-Redeemers | PRO-SEEKER-Redeemers <-(the Original)
and Now with FOOD FIGHT and Frying Pan arena !!!
IP: 68.232.181.236:7777
{CMH} CROSSBONES Monster Hunt (MH) by Mars007 (The Original) - IP: 108.61.238.93:7777

Post Reply