HX3 Foren

HX3 Foren (https://hx3.de/)
-   Editing & Scripting (https://hx3.de/editing-scripting-167/)
-   -   Bild einfügen (https://hx3.de/editing-scripting-167/bild-einfuegen-17999/)

Thominator 11.10.2009 08:52

Bild einfügen
 
Hallo zusammen!

Ich hoffe es gibt nicht schon ein Thema was dieses Behandelt. Wenn ja dann bitte verzeiht.

Mein Problem ist es: Ich möchte zu Beginn ein Bild einfügen. Ich habe es genauso gemacht wie im Mr. Murray`s Editing Guide. Doch im spiel sagt er mir das er das Bild nicht laden kann. Hier mal meine Description:


class RscPicture
{
idc = -1;
type = CT_STATIC;
style = ST_PICTURE;
colorBackground[] = {0, 0, 0, 0};
colorText[] = {1, 1, 1, 1};
font = Zeppelin32;
sizeEx = 0;
};
class RscTitles
{
titles[] ={Bild1};
class Bild1
{
idd=-1;
movingEnable = true;
duration=10; // Dauer der Einblendung
fadein=2; // Einfadezeit
name = "Bild1"; // Name im Editor
controls[]={Picture};
class Picture : RscPicture
{
x = 0.30; // X-Achse
y = 0.50; // Y-Achse
w = 0.40; // Fensterbreite
h = 0.20; // Fensterhöhe
text = "bilder\ofp2.paa"; // Die Grafik mit Pfad
sizeEx = 0.04;
style=48;
};
};
};



Und das Bild hab ich natürlich in paa. Umgewandelt. und den Befehl (titleRsc ["Bild1","PLAIN"];) habe ich zum Aufrufen benutzt. Kann mir vielleicht wer sagen wo mein Fehler ist?

DirtyHarryTPC 11.10.2009 13:44

Wenn du schon den aufruf titleRsc ["Bild1","PLAIN"] nimmst solltest du auch in der Discription Bild1 stehen haben.
Dein Bild heisst aber ofp2.paa, also ändere alles wo Bild1 steht in ofp2.



class RscPicture
{
idc = -1;
type = CT_STATIC;
style = ST_PICTURE;
colorBackground[] = {0, 0, 0, 0};
colorText[] = {1, 1, 1, 1};
font = Zeppelin32;
sizeEx = 0;
};
class RscTitles
{
titles[] ={Bilder};
class ofp2
{
idd=-1;
movingEnable = true;
duration=10; // Dauer der Einblendung
fadein=2; // Einfadezeit
name = "ofp2"; // Name im Editor
controls[]={Picture};
class Picture : RscPicture
{
x = 0.30; // X-Achse
y = 0.50; // Y-Achse
w = 0.40; // Fensterbreite
h = 0.20; // Fensterhöhe
text = "bilder\ofp2.paa"; // Die Grafik mit Pfad
sizeEx = 0.04;
style=48;
};
};
};


Und aufrufen tust du es so titleRsc ["ofp2","PLAIN"];
Das hier ist der pfad zum ofp2.paa text = "bilder\ofp2.paa"; // Die Grafik mit Pfad , dein ofp2.paa muss natürlich auch in einem ordner sein der bilder heisst.

Thominator 11.10.2009 16:22

Ja schon klar. Das hab ich eh, aber trotzdem schreibt er mir immer eine Meldung das er das Bild nicht laden kann.:(

DirtyHarryTPC 11.10.2009 16:24

Kannste die mission mal hochladen ? Dann kann ich ma kuken.

Thominator 11.10.2009 17:57

Liste der Anhänge anzeigen (Anzahl: 1)
Hier bitte sehr!

DirtyHarryTPC 11.10.2009 18:32

Liste der Anhänge anzeigen (Anzahl: 1)
hast recht :komisch: habs mit eigener Discription probiert und ging auch nich.
kuk dir man die mission an die is von mir , vieleicht kommst du dahinter.

Thominator 11.10.2009 18:34

okay gut, Danke

Buliwyf 11.10.2009 18:44

Also ich krieg das Bild selbst nichtmal mit dem PAA Viewer geöffnet. Das Problem scheint eher am Bild als an dem Einbinden in die Mission zu liegen. Vielleicht falsche Bildgröße? Soweit ich weiß mag ArmA2 nur Größen wie 128*128, 256*256, 512*512, 1024*1024 etc...

:ugly:

Thominator 11.10.2009 18:48

ich glaube das hängt von der größe vom Bild ab. Du hattest dein Bild auf 256x256 und meines war auf 528x528. Jetzt hab ich es auch mit 256x256 probiert, und Sie an es funtzt:D

DirtyHarryTPC 11.10.2009 19:13

528 is ja och falsch , muss schon 512 sein :D
Und auch ich konnte dein paa nicht mit Texview öffnen.

Buliwyf 11.10.2009 19:26

Ihr seid zu langsam... :p


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:05 Uhr.

Angetrieben durch vBulletin, Entwicklung von Philipp Dörner & Tobias


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119