Benötige Tutorial für 39dll

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Benötige Tutorial für 39dll

    Guten Abend,

    ich habe schon alle Tutorials Druchprobiert nur funktionieren diese nicht mehr in Studio.

    Es wäre schön wenn jemand hier aus der Community mir einen Link geben könnte wo es für Studio erklärt wird oder es mir erklärt...

    Ich bedanke mich schonmal aller herzlichstens im Vorraus...

    Schönen Abend wünscht euch Phil!
  • Die internen Funktionen vom GameMaker:Studio sind wirklich top, einfach ganz ganz ganz oft lesen und man versteht das:

    yoyogames.com/tech_blog/11

    Absolut perfekt: help.yoyogames.com/entries/25891363-Networking-Overview

    und auf jeden Fall das Tutorial zum Networking (was ziemlich doof ist) einfach ganz ganz ganz ganz oft anschauen und durchschauen und dann hat man den Dreh eigentlich relativ schnell raus. :)

    EDIT: Ich habe gerade meine ersten Verbindungen stehen und muss sagen, dass man sich dann ja doch ein wenig freut :rolleyes:
    @7rust-dev

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Lucke ()

  • Nach dem Tutorial von Flogy habe ich schonmal gearbeitet Funktioniert leider nicht...

    Bekomme immer den gleichen Fehler

    GameMaker schrieb:

    In Object obj_control, in Event Step event number 0 at line 5 : function "receivemessage" expects 3 arguments, 1 provided
    In Object obj_control, in Event Step event number 0 at line 13 : function "readbyte" expects 1 arguments, 0 provided
    In Object obj_control, in Event Step event number 0 at line 17 : function "readshort" expects 1 arguments, 0 provided
    In Object obj_control, in Event Step event number 0 at line 22 : function "readstring" expects 1 arguments, 0 provided
    In Object obj_player, in Event Keyboard event number 39 at line 4 : function "clearbuffer" expects 1 arguments, 0 provided
    In Object obj_player, in Event Keyboard event number 39 at line 5 : function "writebyte" expects 2 arguments, 1 provided
    In Object obj_player, in Event Keyboard event number 39 at line 6 : function "writeshort" expects 2 arguments, 1 provided
    In Object obj_player, in Event Keyboard event number 39 at line 7 : function "sendmessage" expects 4 arguments, 1 provided
    In Object obj_player, in Event Keyboard event number 39 at line 9 : function "clearbuffer" expects 1 arguments, 0 provided
    In Object obj_player, in Event Keyboard event number 39 at line 10 : function "writebyte" expects 2 arguments, 1 provided
    In Object obj_player, in Event Keyboard event number 39 at line 11 : function "writestring" expects 2 arguments, 1 provided
    In Object obj_player, in Event Keyboard event number 39 at line 12 : function "sendmessage" expects 4 arguments, 1 provided
  • Die 39dll nutzt optionale Argumente, etwas was im Game Maker nie so wirklich gab und erst mit GM Studio so geändert wurde das man alle Argumente angeben muss. Du kannst einfach in die fehlenden Argumente 0 setzen oder lesen was in der Beschreibung zu den Funktionen steht, da steht meistens was der Standard-Wert ist.
    wupto.net/ Nicht meine Seite!
    We love Koalas.

    GM-D-Spam-o-Meter: 32%
  • Nachdem ich alles mit Null gesetzt habe, kann ich zwar Connecten... jedoch wird das ganze nicht Synchrnisiert....

    Liegt es vllt. daran das ich Spielrrtname und otherplayer im Create Event von Control festgelegt habe mit:

    GML-Quellcode

    1. global.otherplayer = ""
    2. global.spielername = ""


    Denn er hat die Variablen nicht gefunden gehabt... aber ich wusste auch nicht was ich dort eintragen sollte...

    Kleiner Link mit dem Projekt:
    *klick*
  • Ich habe 2 Fenster offen.... einmal mit Create und einmal den Joiner.

    So in beiden Fenster sehen ich den Spieler. das Blaue Objekt.
    Wenn ich in einem Fenster das Blaue Objekt den Spieler nach rechts bewege mit Pfeiltaste Rechts.... dann bewegt er sich nur in inem Fenster und nicht in dem anderen....

    Das heißt ihc möchte das die Koodinaten in beiden Fenstern Synchronisiert werrden.
  • Die Pakete die von dem Objekt gesendet werden, müssen natürlich auch empfangen werden, dafür brauchst du das "Other" Objekt. Denn das Spieler Objekt in dem einen Fenster ist das Other Objekt im anderen Fenster, und wenn du nur willst das man eins sieht, musst du einfach abfragen wer Host ist und wer nicht (global.master) und der Host hat dann nur den Spieler und der Client nur das "Other" Objekt. Ich glaube der Code für das Other Objekt steht im Tutorial, dass ich dir Oben verlinkt habe.

    -Nils ;)
  • So ging es mir auch als ich das erste mla mit der 39dll zu tun hatte, da hatte ich das Forum zu gespammt, einfach weil ich zu dumm dafür war xD
    Aber nach ner Zeit lernt man es einfach und versteht es :D

    Aber wenn du schon GMS hast, solltest du besser die Networking funktionen lernen ;)

    -Nils
  • okay, ich hab das Tutorial probiert, aber es kommt immer diese Fehlermeldung:

    In Script dllinit at line 8 : unknown function or script external_call
    In Script dllinit at line 8 : unknown function or script external_define
    In Script dllinit at line 10 : unknown function or script external_define
    In Script dllinit at line 11 : unknown function or script external_define
    In Script dllinit at line 12 : unknown function or script external_define
    In Script dllinit at line 13 : unknown function or script external_define
    In Script dllinit at line 14 : unknown function or script external_define
    In Script dllinit at line 15 : unknown function or script external_define
    In Script dllinit at line 16 : unknown function or script external_define
    In Script dllinit at line 17 : unknown function or script external_define
    In Script dllinit at line 18 : unknown function or script external_define
    In Script dllinit at line 19 : unknown function or script external_define
    In Script dllinit at line 20 : unknown function or script external_define
    In Script dllinit at line 21 : unknown function or script external_define
    In Script dllinit at line 22 : unknown function or script external_define
    In Script dllinit at line 23 : unknown function or script external_define
    In Script dllinit at line 24 : unknown function or script external_define
    In Script dllinit at line 25 : unknown function or script external_define
    In Script dllinit at line 26 : unknown function or script external_define
    In Script dllinit at line 27 : unknown function or script external_define
    In Script dllinit at line 28 : unknown function or script external_define
    In Script dllinit at line 29 : unknown function or script external_define
    In Script dllinit at line 30 : unknown function or script external_define
    In Script dllinit at line 31 : unknown function or script external_define
    In Script dllinit at line 32 : unknown function or script external_define
    In Script dllinit at line 33 : unknown function or script external_define
    In Script dllinit at line 34 : unknown function or script external_define
    In Script dllinit at line 35 : unknown function or script external_define
    In Script dllinit at line 36 : unknown function or script external_define
    In Script dllinit at line 37 : unknown function or script external_define
    In Script dllinit at line 38 : unknown function or script external_define
    In Script dllinit at line 42 : unknown function or script external_define
    In Script dllinit at line 43 : unknown function or script external_define
    In Script dllinit at line 44 : unknown function or script external_define
    In Script dllinit at line 45 : unknown function or script external_define
    In Script dllinit at line 46 : unknown function or script external_define
    In Script dllinit at line 47 : unknown function or script external_define
    In Script dllinit at line 48 : unknown function or script external_define
    In Script dllinit at line 49 : unknown function or script external_define
    In Script dllinit at line 50 : unknown function or script external_define
    In Script dllinit at line 51 : unknown function or script external_define
    In Script dllinit at line 52 : unknown function or script external_define
    In Script dllinit at line 53 : unknown function or script external_define
    In Script dllinit at line 54 : unknown function or script external_define
    In Script dllinit at line 55 : unknown function or script external_define
    In Script dllinit at line 56 : unknown function or script external_define
    In Script dllinit at line 57 : unknown function or script external_define
    In Script dllinit at line 58 : unknown function or script external_define
    In Script dllinit at line 59 : unknown function or script external_define
    In Script dllinit at line 60 : unknown function or script external_define
    In Script dllinit at line 61 : unknown function or script external_define
    In Script dllinit at line 62 : unknown function or script external_define
    In Script dllinit at line 63 : unknown function or script external_define
    In Script dllinit at line 64 : unknown function or script external_define
    In Script dllinit at line 69 : unknown function or script external_define
    In Script dllinit at line 70 : unknown function or script external_define
    In Script dllinit at line 71 : unknown function or script external_define
    In Script dllinit at line 72 : unknown function or script external_define
    In Script dllinit at line 73 : unknown function or script external_define
    In Script dllinit at line 74 : unknown function or script external_define
    In Script dllinit at line 75 : unknown function or script external_define
    In Script dllinit at line 76 : unknown function or script external_define
    In Script dllinit at line 77 : unknown function or script external_define
    In Script dllinit at line 78 : unknown function or script external_define
    In Script dllinit at line 79 : unknown function or script external_define
    In Script dllinit at line 80 : unknown function or script external_define
    In Script dllinit at line 81 : unknown function or script external_define
    In Script dllinit at line 82 : unknown function or script external_define
    In Script dllfree at line 0 : unknown function or script external_free
    In Script tcpconnect at line 9 : unknown function or script external_call
    In Script tcplisten at line 9 : unknown function or script external_call
    In Script tcpaccept at line 6 : unknown function or script external_call
    In Script tcpip at line 2 : unknown function or script external_call
    In Script setnagle at line 5 : unknown function or script external_call
    In Script tcpconnected at line 4 : unknown function or script external_call
    In Script udpconnect at line 7 : unknown function or script external_call
    In Script sendmessage at line 13 : unknown function or script external_call
    In Script receivemessage at line 13 : unknown function or script external_call
    In Script peekmessage at line 14 : unknown function or script external_call
    In Script setformat at line 18 : unknown function or script external_call
    In Script lastinIP at line 8 : unknown function or script external_call
    In Script lastinPort at line 6 : unknown function or script external_call
    In Script setsync at line 5 : unknown function or script external_call
    In Script closesocket at line 4 : unknown function or script external_call
    In Script socklasterror at line 2 : unknown function or script external_call
    In Script myhost at line 1 : unknown function or script external_call
    In Script compareip at line 8 : unknown function or script external_call
    In Script sockexit at line 2 : unknown function or script external_call
    In Script sockstart at line 1 : unknown function or script external_call
    In Script hostip at line 4 : unknown function or script external_call
    In Script getsockid at line 4 : unknown function or script external_call
    In Script writebyte at line 6 : unknown function or script external_call
    In Script writeshort at line 7 : unknown function or script external_call
    In Script writeushort at line 7 : unknown function or script external_call
    In Script writeint at line 7 : unknown function or script external_call
    In Script writeuint at line 7 : unknown function or script external_call
    In Script writefloat at line 6 : unknown function or script external_call
    In Script writedouble at line 7 : unknown function or script external_call
    In Script writechars at line 6 : unknown function or script external_call
    In Script writestring at line 8 : unknown function or script external_call
    In Script copybuffer at line 6 : unknown function or script external_call
    In Script copybuffer2 at line 7 : unknown function or script external_call
    In Script readbyte at line 5 : unknown function or script external_call
    In Script readshort at line 5 : unknown function or script external_call
    In Script readushort at line 5 : unknown function or script external_call
    In Script readint at line 5 : unknown function or script external_call
    In Script readuint at line 5 : unknown function or script external_call
    In Script readfloat at line 5 : unknown function or script external_call
    In Script readdouble at line 5 : unknown function or script external_call
    In Script readchars at line 6 : unknown function or script external_call
    In Script readstring at line 5 : unknown function or script external_call
    In Script readsep at line 11 : unknown function or script external_call
    In Script getpos at line 6 : unknown function or script external_call
    In Script clearbuffer at line 4 : unknown function or script external_call
    In Script buffsize at line 5 : unknown function or script external_call
    In Script setpos at line 6 : unknown function or script external_call
    In Script bytesleft at line 5 : unknown function or script external_call
    In Script createbuffer at line 3 : unknown function or script external_call
    In Script freebuffer at line 4 : unknown function or script external_call
    In Script bufferexists at line 4 : unknown function or script external_call
    In Script md5string at line 4 : unknown function or script external_call
    In Script md5buffer at line 3 : unknown function or script external_call
    In Script bufferencrypt at line 4 : unknown function or script external_call
    In Script bufferdecrypt at line 4 : unknown function or script external_call
    In Script fileopen at line 6 : unknown function or script external_call
    In Script fileclose at line 4 : unknown function or script external_call
    In Script filewrite at line 6 : unknown function or script external_call
    In Script fileread at line 8 : unknown function or script external_call
    In Script filepos at line 4 : unknown function or script external_call
    In Script filesetpos at line 5 : unknown function or script external_call
    In Script filesize at line 4 : unknown function or script external_call
    In Script adler32 at line 7 : unknown function or script external_call
    In Script getmacaddress at line 4 : unknown function or script external_call
    In Script iptouint at line 7 : unknown function or script external_call
    In Script uinttoip at line 5 : unknown function or script external_call
    In Script netconnected at line 4 : unknown function or script external_call
    In Object obj_steuer, in Event StepNormalEvent action number 1 at line 4 : function "receivemessage" expects 3
    In Object obj_steuer, in Event StepNormalEvent action number 1 at line 12 : function "readbyte" expects 1
    In Object obj_steuer, in Event StepNormalEvent action number 1 at line 16 : function "readshort" expects 1
    In Object obj_steuer, in Event StepNormalEvent action number 1 at line 21 : function "readstring" expects 1
    Compile Failed - Please check the Compile window for any additional information
    ;(