Armed-Assault.de Twitter


Editing The world is a Script - write it!

Antwort
 
Themen-Optionen Ansicht
Alt 07.03.2009, 16:16   #1 (permalink)
50 Beiträge
 
Benutzerbild von Althalus
 
Registriert seit: 22.08.2008
Beiträge: 95
Standard Problem mit Revive und Randomcar

Uhu Chummerz,

habe mal wieder ein Problem. Also meine Init.sqf sieht folgendermaßen aus:

Code:
[] execVM "x_scripts\x_vec_hud.sqf";

if(!(isserver)) exitWith{};
[car1] execVM "sqf\Randomauto.sqf";
[car2] execVM "sqf\Randomauto.sqf";
[car3] execVM "sqf\Randomauto.sqf";
[car4] execVM "sqf\Randomauto.sqf";
[car5] execVM "sqf\Randomauto.sqf";
[car6] execVM "sqf\Randomauto.sqf";
[car7] execVM "sqf\Randomauto.sqf";
[car8] execVM "sqf\Randomauto.sqf";
[car9] execVM "sqf\Randomauto.sqf";
[car10] execVM "sqf\Randomauto.sqf";
[car11] execVM "sqf\Randomauto.sqf";
[car12] execVM "sqf\Randomauto.sqf";
[car13] execVM "sqf\Randomauto.sqf";
[car14] execVM "sqf\Randomauto.sqf";
[car15] execVM "sqf\Randomauto.sqf";
[car16] execVM "sqf\Randomauto.sqf";
[car17] execVM "sqf\Randomauto.sqf";
[car18] execVM "sqf\Randomauto.sqf";
[car19] execVM "sqf\Randomauto.sqf";
[car20] execVM "sqf\Randomauto.sqf";
[car21] execVM "sqf\Randomauto.sqf";
[car22] execVM "sqf\Randomauto.sqf";
[car23] execVM "sqf\Randomauto.sqf";
[car24] execVM "sqf\Randomauto.sqf";
[car25] execVM "sqf\Randomauto.sqf";
[car26] execVM "sqf\Randomauto.sqf";
[car27] execVM "sqf\Randomauto.sqf";
[car28] execVM "sqf\Randomauto.sqf";
[car29] execVM "sqf\Randomauto.sqf";
[car30] execVM "sqf\Randomauto.sqf";
[car31] execVM "sqf\Randomauto.sqf";
[car32] execVM "sqf\Randomauto.sqf";
[car33] execVM "sqf\Randomauto.sqf";
[car34] execVM "sqf\Randomauto.sqf";
[car35] execVM "sqf\Randomauto.sqf";
[car36] execVM "sqf\Randomauto.sqf";
[car37] execVM "sqf\Randomauto.sqf";
[car38] execVM "sqf\Randomauto.sqf";
[car39] execVM "sqf\Randomauto.sqf";
[car40] execVM "sqf\Randomauto.sqf";
[car41] execVM "sqf\Randomauto.sqf";
[car42] execVM "sqf\Randomauto.sqf";
[car43] execVM "sqf\Randomauto.sqf";
[car44] execVM "sqf\Randomauto.sqf";
[car45] execVM "sqf\Randomauto.sqf";
[car46] execVM "sqf\Randomauto.sqf";
[car47] execVM "sqf\Randomauto.sqf";
[car48] execVM "sqf\Randomauto.sqf";
[car49] execVM "sqf\Randomauto.sqf";
[car50] execVM "sqf\Randomauto.sqf";
[car51] execVM "sqf\Randomauto.sqf";
[car52] execVM "sqf\Randomauto.sqf";

execVM "DAC\DAC_Config_Creator.sqf";

beam_1 = false;

//Initialise revive script
server execVM "sqf\revive_init.sqf";
if (true) exitWith {};
Wenn ich jetzt ins Spiel gehe Fahren die Autos so wie sie sollen, schön unberechenbar von einem Punkt zu nem anderen. Jedoch funktioniert Revive nicht, DAC genausowenig.

Wenn die Init.sqf aber so aussieht:

Code:
[] execVM "x_scripts\x_vec_hud.sqf";

execVM "DAC\DAC_Config_Creator.sqf";

beam_1 = false;

//Initialise revive script
server execVM "sqf\revive_init.sqf";
if (true) exitWith {};

if(!(isserver)) exitWith{};
[car1] execVM "sqf\Randomauto.sqf";
[car2] execVM "sqf\Randomauto.sqf";
[car3] execVM "sqf\Randomauto.sqf";
[car4] execVM "sqf\Randomauto.sqf";
[car5] execVM "sqf\Randomauto.sqf";
[car6] execVM "sqf\Randomauto.sqf";
[car7] execVM "sqf\Randomauto.sqf";
[car8] execVM "sqf\Randomauto.sqf";
[car9] execVM "sqf\Randomauto.sqf";
[car10] execVM "sqf\Randomauto.sqf";
[car11] execVM "sqf\Randomauto.sqf";
[car12] execVM "sqf\Randomauto.sqf";
[car13] execVM "sqf\Randomauto.sqf";
[car14] execVM "sqf\Randomauto.sqf";
[car15] execVM "sqf\Randomauto.sqf";
[car16] execVM "sqf\Randomauto.sqf";
[car17] execVM "sqf\Randomauto.sqf";
[car18] execVM "sqf\Randomauto.sqf";
[car19] execVM "sqf\Randomauto.sqf";
[car20] execVM "sqf\Randomauto.sqf";
[car21] execVM "sqf\Randomauto.sqf";
[car22] execVM "sqf\Randomauto.sqf";
[car23] execVM "sqf\Randomauto.sqf";
[car24] execVM "sqf\Randomauto.sqf";
[car25] execVM "sqf\Randomauto.sqf";
[car26] execVM "sqf\Randomauto.sqf";
[car27] execVM "sqf\Randomauto.sqf";
[car28] execVM "sqf\Randomauto.sqf";
[car29] execVM "sqf\Randomauto.sqf";
[car30] execVM "sqf\Randomauto.sqf";
[car31] execVM "sqf\Randomauto.sqf";
[car32] execVM "sqf\Randomauto.sqf";
[car33] execVM "sqf\Randomauto.sqf";
[car34] execVM "sqf\Randomauto.sqf";
[car35] execVM "sqf\Randomauto.sqf";
[car36] execVM "sqf\Randomauto.sqf";
[car37] execVM "sqf\Randomauto.sqf";
[car38] execVM "sqf\Randomauto.sqf";
[car39] execVM "sqf\Randomauto.sqf";
[car40] execVM "sqf\Randomauto.sqf";
[car41] execVM "sqf\Randomauto.sqf";
[car42] execVM "sqf\Randomauto.sqf";
[car43] execVM "sqf\Randomauto.sqf";
[car44] execVM "sqf\Randomauto.sqf";
[car45] execVM "sqf\Randomauto.sqf";
[car46] execVM "sqf\Randomauto.sqf";
[car47] execVM "sqf\Randomauto.sqf";
[car48] execVM "sqf\Randomauto.sqf";
[car49] execVM "sqf\Randomauto.sqf";
[car50] execVM "sqf\Randomauto.sqf";
[car51] execVM "sqf\Randomauto.sqf";
[car52] execVM "sqf\Randomauto.sqf";
Funktioniert DAC und Revive aber die Autos fahren nicht mehr. Bin langsam am verzweifeln.
Jemand einen Lösungsvorschlag?

so long

Althi
Althalus ist offline   Mit Zitat antworten
Alt 07.03.2009, 17:08   #2 (permalink)
SQF Zauberer 10 Jahre hx3
500 Beiträge1000 Beiträge
 
Benutzerbild von Vienna
 
Registriert seit: 12.07.2004
Ort: Wien
Beiträge: 1.917
Standard

Versuche es einmal mit einer Pause von 10 Sekunden vor den Fahrzeugen und mit nur einem Fahrzeug.

...
...

if(!(isserver)) exitWith{};
sleep 10;
[car1] execVM "sqf\Randomauto.sqf";
Vienna ist offline   Mit Zitat antworten
Alt 07.03.2009, 17:14   #3 (permalink)
10 Jahre hx3
5000 Beiträge
 
Benutzerbild von Xeno
 
Registriert seit: 03.01.2008
Alter: 84
Beiträge: 6.552
Standard

Da hat mal wieder jemand Lokalitätsprobleme...

Code:
execVM "x_scripts\x_vec_hud.sqf";
execVM "DAC\DAC_Config_Creator.sqf";
beam_1 = false;

//Initialise revive script
// sollte das nicht eher "revive_sqf\revive_init.sqf" heißen ?
execVM "sqf\revive_init.sqf";

if (isServer) then {
    for "_i" from 1 to 52 do {
        call compile format ["
            [car%1] execVM "sqf\Randomauto.sqf";
        ",_i];
    };
};
Stimmt "execVM "sqf\revive_init.sqf";" wirklich ?
Oder sollte das nicht eher "execVM "revive_sqf\revive_init.sqf";" heißen ?

Hab auch noch die 52 Randomauto Zeilen auf 5 reduziert.

Noch was, was ist in Randomauto.sqf ?

Xeno
__________________
In arma everything is made of refined explodium, armored with wet paper towels.

Geändert von Xeno (07.03.2009 um 17:17 Uhr).
Xeno ist offline   Mit Zitat antworten
Alt 07.03.2009, 18:49   #4 (permalink)
50 Beiträge
 
Benutzerbild von Althalus
 
Registriert seit: 22.08.2008
Beiträge: 95
Standard

in Randomcar.sqf ist:
Code:
if(!(isserver)) exitWith{};
private "_car";
_fahrzeug = _this select 0;
_unitd = Driver _fahrzeug;
_randomstart = random 30;
sleep _randomstart;
while {canMove _fahrzeug} do
{
    _u = random 10.99;
    _u = _u-(_u % 1);
    _u = _u+1;
    sleep 0.5;
    _fahrzeug setfuel 1;
    if(_u == 1) then 
    {
        _unitd move (getpos urb1);
    };
    if(_u == 2) then 
    {
        _unitd move (getpos urb2);
    };
    
    if(_u == 3) then 
    {
        _unitd move (getpos urb3);
    };
    
    if(_u == 4) then 
    {
        _unitd move (getpos urb4);
    };
    
    if(_u == 5) then 
    {
        _unitd move (getpos urb5);
    };
    
    if(_u == 6) then 
    {
        _unitd move (getpos urb6);
    };
    
    if(_u == 7) then 
    {
        _unitd move (getpos urb7);
    };
    
    if(_u == 8) then 
    {
        _unitd move (getpos urb8);
    };
    
    if(_u == 9) then 
    {
        _unitd move (getpos urb9);
    };
    
    if(_u == 10) then 
    {
        _unitd move (getpos urb10);
    };
    
    if(_u == 11) then 
    {
        _unitd move (getpos urb11);
    };
    
    sleep 5;
    waitUntil {(unitready _unitd) OR (not (canMove _fahrzeug))};    
};
das ist damit die Autos umherfahren.

Und was die revive_init.sqf angeht habe ich die in den Ordner "sqf" gepackt. es ist die sqf datei wo man einstellt wer reviven darf, die spielernamen drinne stehn und all sowas.

werde ich morgen ausprobieren.
vielen dank melde dann morgen wie es lief.
Althalus ist offline   Mit Zitat antworten
Alt 07.03.2009, 19:08   #5 (permalink)
10 Jahre hx3
5000 Beiträge
 
Benutzerbild von Xeno
 
Registriert seit: 03.01.2008
Alter: 84
Beiträge: 6.552
Standard

Dein Problem war, dass das Revive Script nicht auf dem Client gestartet wurde, da Du vorher mit

if(!(isserver)) exitWith{};

rausgesprungen bist.

Und gerade auf dem Client läuft ja der Großteil des Revive.

Xeno
__________________
In arma everything is made of refined explodium, armored with wet paper towels.
Xeno ist offline   Mit Zitat antworten
Alt 08.03.2009, 17:46   #6 (permalink)
50 Beiträge
 
Benutzerbild von Althalus
 
Registriert seit: 22.08.2008
Beiträge: 95
Standard

Also ArmA gibt mir einen Fehler wenn ich die Init.sqf so benutze wie du es geschrieben hast. Er gibt nämlich ein Fehler bei
Code:
    for "_i" from 1 to 52 do {
vorallem meckert er wegen dem "_i" das er damit nichts anfangen kann.
Habe die Init.sqf nun so stehen:
Code:
execVM "x_scripts\x_vec_hud.sqf";
execVM "DAC\DAC_Config_Creator.sqf";
beam_1 = false;

//Initialise revive script
execVM "sqf\revive_init.sqf";

[Car1] execVM "sqf\Randomauto.sqf";
[Car2] execVM "sqf\Randomauto.sqf";
[Car3] execVM "sqf\Randomauto.sqf";
[Car4] execVM "sqf\Randomauto.sqf";
[Car5] execVM "sqf\Randomauto.sqf";
[Car6] execVM "sqf\Randomauto.sqf";
[Car7] execVM "sqf\Randomauto.sqf";
[Car8] execVM "sqf\Randomauto.sqf";
[Car9] execVM "sqf\Randomauto.sqf";
[Car10] execVM "sqf\Randomauto.sqf";
[Car11] execVM "sqf\Randomauto.sqf";
[Car12] execVM "sqf\Randomauto.sqf";
[Car13] execVM "sqf\Randomauto.sqf";
[Car14] execVM "sqf\Randomauto.sqf";
[Car15] execVM "sqf\Randomauto.sqf";
[Car16] execVM "sqf\Randomauto.sqf";
[Car17] execVM "sqf\Randomauto.sqf";
[Car18] execVM "sqf\Randomauto.sqf";
[Car19] execVM "sqf\Randomauto.sqf";
[Car20] execVM "sqf\Randomauto.sqf";
[Car21] execVM "sqf\Randomauto.sqf";
[Car22] execVM "sqf\Randomauto.sqf";
[Car23] execVM "sqf\Randomauto.sqf";
[Car24] execVM "sqf\Randomauto.sqf";
[Car25] execVM "sqf\Randomauto.sqf";
[Car26] execVM "sqf\Randomauto.sqf";
[Car27] execVM "sqf\Randomauto.sqf";
[Car28] execVM "sqf\Randomauto.sqf";
[Car29] execVM "sqf\Randomauto.sqf";
[Car30] execVM "sqf\Randomauto.sqf";
[Car31] execVM "sqf\Randomauto.sqf";
[Car32] execVM "sqf\Randomauto.sqf";
[Car33] execVM "sqf\Randomauto.sqf";
[Car34] execVM "sqf\Randomauto.sqf";
[Car35] execVM "sqf\Randomauto.sqf";
[Car36] execVM "sqf\Randomauto.sqf";
[Car37] execVM "sqf\Randomauto.sqf";
[Car38] execVM "sqf\Randomauto.sqf";
[Car39] execVM "sqf\Randomauto.sqf";
[Car40] execVM "sqf\Randomauto.sqf";
[Car41] execVM "sqf\Randomauto.sqf";
[Car42] execVM "sqf\Randomauto.sqf";
[Car43] execVM "sqf\Randomauto.sqf";
[Car44] execVM "sqf\Randomauto.sqf";
[Car45] execVM "sqf\Randomauto.sqf";
[Car46] execVM "sqf\Randomauto.sqf";
[Car47] execVM "sqf\Randomauto.sqf";
[Car48] execVM "sqf\Randomauto.sqf";
[Car49] execVM "sqf\Randomauto.sqf";
[Car50] execVM "sqf\Randomauto.sqf";
[Car51] execVM "sqf\Randomauto.sqf";
[Car52] execVM "sqf\Randomauto.sqf";
Er meckert jetzt nicht mehr und die Fahrzeuge fahren, jedoch weiß ich nicht ob revive funktioniert da ich es noch nicht testen kann. es findet sich niemand der mich abknallt
Althalus ist offline   Mit Zitat antworten
Alt 08.03.2009, 18:22   #7 (permalink)
10 Jahre hx3
5000 Beiträge
 
Benutzerbild von Xeno
 
Registriert seit: 03.01.2008
Alter: 84
Beiträge: 6.552
Standard

Zitat von Althalus Beitrag anzeigen

Also ArmA gibt mir einen Fehler wenn ich die Init.sqf so benutze wie du es geschrieben hast. Er gibt nämlich ein Fehler bei

Code:
    for "_i" from 1 to 52 do {
vorallem meckert er wegen dem "_i" das er damit nichts anfangen kann.
Habe die Init.sqf nun so stehen:
Mach aus dem
Code:
[car%1] execVM "sqf\Randomauto.sqf";
ein
Code:
[car%1] execVM ""sqf\Randomauto.sqf"";
Dann klappts auch mit dem Nachbarn (zwei Anführungszeichen), mein Fehler.

Xeno
__________________
In arma everything is made of refined explodium, armored with wet paper towels.
Xeno ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Revive Script Anfänger Problem Duke49th Editing 38 11.02.2009 13:50
Problem mit XAM und ACE mod White Wulf Multiplayer Community 4 03.01.2009 22:48
Revive oder nicht DirtyHarryTPC Editing 1 20.11.2008 11:29
Revive Fehler S4mmy Editing 9 11.06.2008 13:56
Revive 1.4 frage John.J.Predoc Editing 11 01.02.2008 18:56


Kontakt - HX3.de - Archiv - Nach oben

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