I did only look at Your code for a few seconds… because i could not understand why You process all the numbers on a line, while You want to replace the texture/shader-names.
i know TP, i once bought it… (waaaay back in the late 80’s or begin 90’s)… I use Delphi now for most of my programming,… (and other languages on occasion)
I have a tip for You: Create the initial program in pseudo-code, and then later replace it with real code graduately…
And… create more functions, so it is easier to spot errors (debug)
I find this strange:
the variables get the numbers -32 -32 48 32 -32 48 32 -32 (all correct so far) and 0 (that means it did not get any value)
a 0 means no valid value in Your proggy?.. but what if there is a brush constructed on the map’s origin (0,0,0) ?.. 0 can be a valid number too.
can tp handle strings faster than numbers
for a computer everything is a number when it gets to the CPU…
Strings usually take more memory than numbers… any floating-point number is only 4 bytes long in memory, and a string can be much longer (a TP7 string always takes 256 bytes… so what if Your .map lines are longer??).
It takes more effort to search/compare strings than to compare numbers…
And… if replacing some text for another text is all You want to do, why not just open a text-editor and find/replace “radiant/notex” with “common/caulk”?..
i am still convinced that the program hasnt a mistake
this just sounds funny to me…
this just sounds funny to me…