PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Dynamisches Gras


ofpdaniel
11.04.2005, 18:41
Hab mir jetzt mal das Dynamische Gras Addon gezogen. Da ich schon einige Addons
auf Flashpoint oben habe dachte ich mir es wäre kein Problem. Doch irgendwie war ich
zu unfähig das Addon so raufzuspielen, dass es geht. Kann mir jemand vielleicht helfen, der das Addon schon oben hat oder so??
mfg

Kompost
11.04.2005, 18:51
Oben, raufzuspielen :confused: Also irgendwie sagt mir das alles nichts ;)

Wo liegt denn genau das Problem? Bis wohin kommst du? :)

ofpdaniel
11.04.2005, 18:54
Ja also ich ziehs mir runter pack die pbo Dateien wie im Readme es steht in den Res Addons ordner. Bei Kegetys Waffen usw. funktionierte das alles doch bei diesem Addon gehts nicht. In der Readme steht was von wie man das Script verwendet aber weiß nicht wie das geht.
mfg

Kompost
11.04.2005, 18:55
Kannst du vielleicht mal die Readme hier in den Thread posten? :9 Vielleicht kann ich dir dann helfen :)

ofpdaniel
11.04.2005, 18:55
Hier gepostet was da von vom Verwenden des Scripts steht:
How to use the script:

[1 target,2 object,3 density,4 object count,5* speed,6* height variation,7* damage or not] exec "uwar_grass.sqs"

* = optional

1. target is the unit that the objects will follow, just make it player for normal use.

2. object is the object name, like "uwar_weeds1", be sure to include the quotations.

3. density is a number greater than 0 that determines how spread out the grass objects are. use 0.5 density for spread out larger objects, and 1 or above for smaller objects that are not as visible from a distance

4. object count is the number of grass objects of this type to make, about 400 total among all types should be reasonable for performance

5. speed multiplier at which grass script loops, acceptable values are .2 and up, where .2 is the best for performance but grass will not follow the target quickly. DEFAULT is 0.75

6. height variation is the height in meters than the object can be randomly pushed down into the ground. this can create more varied grassfields, .25 to .5 is recommended, DEFAULT is 0. it should also be noted that there is a bias towards taller grass, it is not linearly random.

7. damage or not, accepts either true or false, and determines if all objects should be fully damaged when created. this will prevent objects from being destroyed in game, so DEFAULT is true. you would want false if you want to be able to flatten the object when you drive over it, or if you are not using this script for grass at all but being creative, try it with houses and a low density value!

ofpdaniel
11.04.2005, 18:57
Und nochwas lol:

The names of the grasses and their descriptions:
"uwar_weeds1" - tall weeds, well lit
"uwar_weeds2" - short weeds, well lit
"uwar_litweeds1" - tall weeds, half lit
"uwar_litweeds2" - short weeds, half lit
"uwar_darkweeds1" - tall dark weeds
"uwar_darkweeds2" - short dark weeds

Example Uses:

for single player, something like this is recommended:
[player, "uwar_darkweeds2", 1, 100, 1, .25, true] exec "uwar_grass.sqs"
[player, "uwar_darkweeds1", .5, 400, .5, .5, true] exec "uwar_grass.sqs"

Kompost
11.04.2005, 18:57
:D Sorry aber ich hab überhaupt keinen Plan wie das gehen soll :confused: ich bin mir aber sicher da werden sich schopn noch Leute finden :)

ofpdaniel
11.04.2005, 18:59
ok kein Prob
Bei OFPC haben es doch einige schon getestet aber ich packs nicht

ofpdaniel
11.04.2005, 19:02
Hier mal das ganze Readme:
Unscripted War grass v1.0

Created by ThruYerStErNuM
thruyersternum@hotmail.com

This addon contains some grass objects from my yet to be released Unscripted War: Vietnam pack. More significant than the grass objects is the grass generation script that is sampled in an included mission, in which grass is automatically created and moved as the player moves to keep the illusion that the grass is everywhere.

The sample mission also has example triggers that the script uses to know where not to generate grass, such as in towns or over water.



Installation:
place uwar_grass.pbo and uwar_empty.pbo into your res\addons directory



The names of the grasses and their descriptions:
"uwar_weeds1" - tall weeds, well lit
"uwar_weeds2" - short weeds, well lit
"uwar_litweeds1" - tall weeds, half lit
"uwar_litweeds2" - short weeds, half lit
"uwar_darkweeds1" - tall dark weeds
"uwar_darkweeds2" - short dark weeds



How to use the script:

[1 target,2 object,3 density,4 object count,5* speed,6* height variation,7* damage or not] exec "uwar_grass.sqs"

* = optional

1. target is the unit that the objects will follow, just make it player for normal use.

2. object is the object name, like "uwar_weeds1", be sure to include the quotations.

3. density is a number greater than 0 that determines how spread out the grass objects are. use 0.5 density for spread out larger objects, and 1 or above for smaller objects that are not as visible from a distance

4. object count is the number of grass objects of this type to make, about 400 total among all types should be reasonable for performance

5. speed multiplier at which grass script loops, acceptable values are .2 and up, where .2 is the best for performance but grass will not follow the target quickly. DEFAULT is 0.75

6. height variation is the height in meters than the object can be randomly pushed down into the ground. this can create more varied grassfields, .25 to .5 is recommended, DEFAULT is 0. it should also be noted that there is a bias towards taller grass, it is not linearly random.

7. damage or not, accepts either true or false, and determines if all objects should be fully damaged when created. this will prevent objects from being destroyed in game, so DEFAULT is true. you would want false if you want to be able to flatten the object when you drive over it, or if you are not using this script for grass at all but being creative, try it with houses and a low density value!


Example Uses:

for single player, something like this is recommended:
[player, "uwar_darkweeds2", 1, 100, 1, .25, true] exec "uwar_grass.sqs"
[player, "uwar_darkweeds1", .5, 400, .5, .5, true] exec "uwar_grass.sqs"


or, for benchmark based values:
[player, "uwar_darkweeds2", .75 + (benchmark/20000) , benchmark/20, 1, .25, true] exec "uwar_grass.sqs"
[player, "uwar_darkweeds1", .5, benchmark/10, .5, .5, true] exec "uwar_grass.sqs"


If it were possible for each client to createvehicle the target object without it being broadcast, then this line would be great in multiplayer for each client to have short grass local to him. I don't know if this is possible though.
[player, "uwar_weeds2", 1, 100] exec "uwar_grass.sqs"



Recommendations:
Use higher density if your screen resolution is lower, and lower multiplier if the benchmark value is lower, for better performance.

for most realism, decrease density and increase object count, so that the grass is spread out thickly over a wider area, but this comes at the cost of performance.


Usage details:

Make sure the init.sqs has a value: uwar_maxt = some number that is greater than the number of triggers. The triggers must be named by the format given in the sample mission and described below.

weeds labeled 2 are those that do not obstruct vision.
weeds labeled 1 are taller and can be used for cover, and should only be used in single player. AI will cause a greater performance hit with these because they block view.
From a distance, men concealed in this grass will not appear as concealed as viewed from close up but the ai disregard this, and overall single player gameplay is improved with this grass

dark weeds are appropriate for night missions and darker green grass, but look good in most environments

If the object to be generated is not detectable in a detect everything trigger, then the script automatically employs a backup system for use with the triggers involving an invisible unit addon. This just ensures that every object will work with the script.

There are no other global variable names used besides a few with the UWAR tag infront.


Triggers:

each trigger must be of type detect everything, and have the name "uwar_g_X" where X is any number from 1 to uwar_max. uwar_max must be defined in init.sqs, if it is 0, then the system of disabling grass movement will be disabled, so that grass will always follow around the target nomatter where it is. Using a value of 0 will make the script faster as well, so if your mission does not go into towns, then it is recommended that you keep uwar_maxt = 0.

Disclamer:
Who reads disclamers? I don't care what you do.

burns
11.04.2005, 19:08
mmh..dynamisches gras, wie das wohl wirkt :ugly:



da sind demomissionen dabei (bei mir waren sie das jedenfalls)! wenn man es schafft sich die darin enthaltenen scripts und trigger in seine eigene mission einzubauen sollte es keine weiteren probleme geben.

ofpdaniel
11.04.2005, 19:09
Ach so das geht nur bei dem Editor?? Verdammt lol. Naja danke nochmal
mfg

MarcusErgalla
16.05.2005, 18:58
Genau das Grasaddon such ich, kann mir bitte jemand sagen wo ich es finde?

Gruß M-E :)

burns
17.05.2005, 15:00
schonmal bei ofpc probiert ? :)

http://www.ofpc.de/download_file.xhtml?list=ofpc&id=319

MarcusErgalla
17.05.2005, 15:42
Ja hab ich, ging aber ned.

:daumen: Danke Burns

MarcusErgalla
27.07.2005, 17:47
So, es gibt inzwischen ja eine neue Version des Addons, wenn ich aber die Mission in die ich es eingebaut habe starte, stürtzt Flashpoint ab und es erscheint keine Fehlermeldung.
Das ganze geschieht auch in der der Demomission die dabei war...

Weiß jemand woran das liegen könnte?

Chaos
24.08.2005, 20:47
Kann mir jemand sagen wieso bei mir dieses AOSQM2SQS.exe Programm nur eine 0kb große Datei ohne Einträge erstellt ?

Ich hab folgende Schritte gemacht:
1. Gras Objekte auf der Karte plaziert (1000er,250er,50er,10er) - alles was so da war also
2. Ich hab auch Auslöser plaziert die in der Bedingung Zeile "uwar_grass_nogova" stehen haben.
3. Ich hab gespeichert und die mission.sqm in gleichen Ordner wie die o.g. Exe Datei gepackt
4. Ich verschiebe die mission.sqm auf die .exe Datei und ein Fenster wird angezeigt - Befehlsausgabe. Dieses schließt sich jedoch schon nach weit weniger als einer halben Sekunde.
5. Eine mission.sqm.sqs Datei wird erstellt die jedoch 0kb groß ist und dazu auch volkommen leer.

Frage No.2:
Ist das Graß wirklich so laggy ? Mir scheint es, daß man nicht sehr viel damit bedecken kann oder ?

Landsknecht
18.02.2006, 21:46
Hallo Gemeinde!

Also ich habe mir das Gras addon runtergeladen aber ich bekomm es einfach nicht hin es zu "installieren" könnte mir jemand helfen und mir Schritt für Schritt erklären wie ich das zum Laufen bekomme?
Die Readme hat mich mehr verwirt als mir geholfen...

M.F.G

Landsknecht

Gelöschter Benutzer
18.02.2006, 22:32
Hast du dir auch eine neuere Version, (uwar Gras v.1.2/ 1,49 MB) (http://ofpc.de/files/sonstiges/uwar_grass-1.2.zip) runtergeladen?

also bei dem Addon liegt eine "Demomission" bei d.h.,
wenn du in dem "Editor" bist,
dann gehst du auf laden,
dann wählst du "Nogova" aus und öffnest die Beispielmission.
Wenn du jetzt auf "Vorschau" klickst, müsste es eigentlich gehen.

Kurz:
Editor öffnen --> auf Laden klicken ---> Demomission auswählen ---> auf Vorschau klicken ---> enjoyen

Wenn du das Gras jetzt aber auf anderen Inseln verwenden willst,
dann wählst du alle "Einheiten + Gras" auf Nogova aus und drückst "Strg+c".

Dann öffnest du eine beliebige Insel und fügst die "Einheiten+Gras" wieder ein.
Um das Grasscript jetzt nutzen zu können, speicherst du das ganze jetzt als Mission ab
und gehst wieder raus aus OFP, in deinen OFP/Users/dein Name/missions Order.

In diesem Ordner findest du dann ein Ordner der von dir angelegten Mission.
In diesen Ordner kopierst du jetzt einfach nur noch die Missions Dateien, des von mir oben genannten Links rein, also
von uwar_grass-1.2.zip/uwar_testgrass2.noe --> OFP/Users/dein Name/missions/deine Mission.

Dann noch mal OFP starten und die Mission im Editor laden und nochmals auf Vorschau klicken und enjoyen. :)

Kurz:
Szene der Demomission speichern ---> beliebige Insel laden ---> Szene einfügen --> Mission abspeichern ---> Users/dein Name/missionsdeine Mission Ordner öffnen ---> die Dateien der uwar_grass-1.2.zip/uwar_testgrass2.noe dort einfügen --->enjoyen


Hoffe konnte helfen :)

Lonely
19.02.2006, 11:08
@M-E: genau das gleiche passiert bei mir auch.... bei der alten Version gings noch, aber mit diesem "Abstract Grass" zeug setzt mich ofp jedesmal zurück auf den desktop (bei der testmission.. mit ner anderen hab ichs noch garnicht probiert...)

MarcusErgalla
19.02.2006, 11:13
Naja, musste ne eigene erstellen, geht mittlerweile alles bei mir!

Vyte
16.06.2009, 22:41
Also nochmal in Kurzform. Das Gras Addon ist nicht einfach ein Addon sondern ein Script? Sprich wenn ich ne CTI MIsson die ich mir runtergeladen habe mit gras spielen will muss ich scripten lernen und mir den zurechtschneiden? Oder wirkt sich das Grass Addon auf eine Komplette Insel aus (StandartInseln) und kann jede beliebe Mission auf der Insel spielen?

burns
17.06.2009, 14:09
Das Gras wird per Trigger aufgerufen und begrenzt sich dann auf den eingestellten Trigger-Raum. Hat zum Grund das es sonst auch auf Strassen 'wachsen' würde, und die Performance würd auch in´Keller gehn wenn überall auf der Insel die Grasobjekte erstellt würden - deshalb ist´s nur örtlich begrenzt anzuwenden.

Sieht man aber alles in den Beispielmissionen.

Vyte
17.06.2009, 23:44
Naja ich verstehe in die readme nur bahnhof sorry, vieleicht bin ich einfach nicht für sowas gemacht ^^

Angenommen ich möchte in einer fertigen crCTI MIssion mein Gras haben. Was genau muss ich nun tun? Gibts nicht ein einfaches Gras Addon was einfach nur das Gras auf alle Inseln anwendet, sprich nur die Inseln umbastelt und schon kann man mit allen Missionen auf dieser Insel spielen?