Forum > Noggit

BETA V 120 B 19 - changeset 91 (bafa324c29de)

<< < (8/9) > >>

lordshark:
Greetings,
NoggIT 120 haven't any display problems with own objects (m2-objects). i have test it, its works. But the duplicate bug and the copy & past + the crash-bug must fix it.
With own WMO-Object will i test it.

shark

Steff:
But the duplicate bug and the copy & past + the crash-bug must fix it.

What do you meen with this sentence?

lordshark:
Greetings,
i mean with the duplicate bug the bug, if you save that noggit spawn a lot of the objects self.
And with Copy and Past-Bug mean it, that if you copy and past a object that the height etc. not the same is.

man, my englisch is f*ck up.

TheBuG:

--- Quote from: "lordshark" ---Greetings,
i mean with the duplicate bug the bug, if you save that noggit spawn a lot of the objects self.
And with Copy and Past-Bug mean it, that if you copy and past a object that the height etc. not the same is.

man, my englisch is f*ck up.
--- End quote ---

I think he means that objects get duplicated when they're at an ADT border, and that .m2s are not copied with the same rotation and scale.

schlumpf:
To fix duplicate doodads caused by the unique id bug:

--- Code: ---#!/bin/bash
PWD=`pwd`
cd "$1"
for adt in `ls *.adt`; do
fileinfo "$adt"
txt=`echo "$adt" | sed -e "s/.adt/.txt/g"`
START=`grep -n MDDF "$txt" | sed -e "s/:.*//g"`
END=`grep -n MODF "$txt" | sed -e "s/:.*//g"`
head -n $(($START - 1)) "$txt" > start
tail -n +$END "$txt" > end
tail -n +$(($START+1)) "$txt" | head -n $(($END - $START - 2)) > middle
cat middle | sort -k 3 | uniq -f 2 > middle_
cat start > "$txt"
echo MDDF `cat middle_ | wc -l ` >> "$txt"
cat middle_ >> "$txt"
echo "" >> "$txt"
cat end >> "$txt"
loadinfo "$adt"
rm end middle middle_ start "$txt"
done
cd "$PWD"
--- End code ---
The script takes the path with adts to be fixed as parameter.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version