AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke ARK (Survival Evolved) RCON Client Delphi

ARK (Survival Evolved) RCON Client Delphi

Ein Thema von ArkTuber · begonnen am 12. Okt 2019 · letzter Beitrag vom 15. Okt 2019
Antwort Antwort
Seite 1 von 2  1 2   
Benutzerbild von ArkTuber
ArkTuber

Registriert seit: 12. Okt 2019
10 Beiträge
 
#1

AW: ARK (Survival Evolved) RCON Client Delphi

  Alt 13. Okt 2019, 17:37
Naja, du musst deine Daten als TBytes mäßiges Array versenden.
Dazu müssen diese wie unter Basic Packet Structure in deiner URL angegeben
codiert werden. Also Size 4 Byte, ID und Type ebenfalls. Der String
ist als ASCII-String immer 1 Byte pro Zeichen codiert.


Mal eine andere Frage: welche Programmiervorkenntnisse hast du bisher?
Ich verstehe davon kaum etwas... Sorry dafür habe ich noch zu wenig erfahrung... Könntest du mir evtl ein Beispiel oder auch den Quell Code dafür schreiben ? Wenn ich den Code habe dann werde ich es auch verstehen
  Mit Zitat antworten Zitat
Benutzerbild von p80286
p80286

Registriert seit: 28. Apr 2008
Ort: Stolberg (Rhl)
6.659 Beiträge
 
FreePascal / Lazarus
 
#2

AW: ARK (Survival Evolved) RCON Client Delphi

  Alt 13. Okt 2019, 19:21
Zitat:
Basic Packet Structure

Both requests and responses are sent as TCP packets. Their payload follows the following basic structure:
Field Type Value
Size 32-bit little-endian Signed Integer Varies, see below.
ID 32-bit little-endian Signed Integer Varies, see below.
Type 32-bit little-endian Signed Integer Varies, see below.
Body Null-terminated ASCII String Varies, see below.
Empty String Null-terminated ASCII String 0x00
Packet Size

The packet size field is a 32-bit little endian integer, representing the length of the request in bytes. Note that the packet size field itself is not included when determining the size of the packet, so the value of this field is always 4 less than the packet's actual length. The minimum possible value for packet size is 10:
Size Containing
4 Bytes ID Field
4 Bytes Type Field
At least 1 Byte Packet body (potentially empty)
1 Bytes Empty string terminator

Since the only one of these values that can change in length is the body, an easy way to calculate the size of a packet is to find the byte-length of the packet body, then add 10 to it.

The maximum possible value of packet size is 4096. If the response is too large to fit into one packet, it will be split and sent as multiple packets. See "Multiple-packet Responses" below for more information on how to determine when a packet is split.
Sei doch bitte einmal so nett und beschreibe was Du daran nicht verstehst.

Gruß
K-H
Programme gehorchen nicht Deinen Absichten sondern Deinen Anweisungen
R.E.D retired error detector
  Mit Zitat antworten Zitat
Benutzerbild von ArkTuber
ArkTuber

Registriert seit: 12. Okt 2019
10 Beiträge
 
#3

AW: ARK (Survival Evolved) RCON Client Delphi

  Alt 13. Okt 2019, 19:23
Ich weiß nicht wie ich das umsetzten soll... Ich habe zu wenig erfahrung in dem gebiet und weiß leider überhaupt nicht wie ich so etwas sende bzw wie der Quell Code dafür aussieht... Ich bin wie gesagt noch neu in der Programmierung ich habe mir schon einiges selber beigebracht aber sowas habe ich noch nie gemacht...

Geändert von ArkTuber (13. Okt 2019 um 19:43 Uhr)
  Mit Zitat antworten Zitat
Benutzerbild von p80286
p80286

Registriert seit: 28. Apr 2008
Ort: Stolberg (Rhl)
6.659 Beiträge
 
FreePascal / Lazarus
 
#4

AW: ARK (Survival Evolved) RCON Client Delphi

  Alt 13. Okt 2019, 20:54
Also was ein Array oder ein Record ist weißt Du?

Gruß
K-H
Programme gehorchen nicht Deinen Absichten sondern Deinen Anweisungen
R.E.D retired error detector
  Mit Zitat antworten Zitat
Benutzerbild von ArkTuber
ArkTuber

Registriert seit: 12. Okt 2019
10 Beiträge
 
#5

AW: ARK (Survival Evolved) RCON Client Delphi

  Alt 13. Okt 2019, 20:56
Vom namen her schon aber das wars auch schon
  Mit Zitat antworten Zitat
Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#6

AW: ARK (Survival Evolved) RCON Client Delphi

  Alt 13. Okt 2019, 21:00
Dann solltest du erst mal die Grundlagen lernen.. Das wird so nix.
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat
Benutzerbild von ArkTuber
ArkTuber

Registriert seit: 12. Okt 2019
10 Beiträge
 
#7

AW: ARK (Survival Evolved) RCON Client Delphi

  Alt 13. Okt 2019, 21:04
Aus diesem Grund hatte ich ja gefragt ob mir einer das Schreiben kann... Ich habe mit Batch, C++ und mit der Unreal Engine gearbeitet alles was ich davon kann habe ich durch Source Codes gerlernt...

Geändert von ArkTuber (13. Okt 2019 um 21:23 Uhr)
  Mit Zitat antworten Zitat
Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#8

AW: ARK (Survival Evolved) RCON Client Delphi

  Alt 14. Okt 2019, 13:50
Zitat:
Basic Packet Structure

Both requests and responses are sent as TCP packets. Their payload follows the following basic structure:
Field Type Value
Size 32-bit little-endian Signed Integer Varies, see below.
ID 32-bit little-endian Signed Integer Varies, see below.
Type 32-bit little-endian Signed Integer Varies, see below.
Body Null-terminated ASCII String Varies, see below.
Empty String Null-terminated ASCII String 0x00
Packet Size

The packet size field is a 32-bit little endian integer, representing the length of the request in bytes. Note that the packet size field itself is not included when determining the size of the packet, so the value of this field is always 4 less than the packet's actual length. The minimum possible value for packet size is 10:
Size Containing
4 Bytes ID Field
4 Bytes Type Field
At least 1 Byte Packet body (potentially empty)
1 Bytes Empty string terminator

Since the only one of these values that can change in length is the body, an easy way to calculate the size of a packet is to find the byte-length of the packet body, then add 10 to it.

The maximum possible value of packet size is 4096. If the response is too large to fit into one packet, it will be split and sent as multiple packets. See "Multiple-packet Responses" below for more information on how to determine when a packet is split.
Sei doch bitte einmal so nett und beschreibe was Du daran nicht verstehst.

Gruß
K-H
Lies dir das nochmal durch. Oder im Idealfall sogar das auf der Webseite selbst.
Nur einen String zu schicken reicht nicht.
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat
Benutzerbild von ArkTuber
ArkTuber

Registriert seit: 12. Okt 2019
10 Beiträge
 
#9

AW: ARK (Survival Evolved) RCON Client Delphi

  Alt 14. Okt 2019, 13:53
Zitat:
Basic Packet Structure

Both requests and responses are sent as TCP packets. Their payload follows the following basic structure:
Field Type Value
Size 32-bit little-endian Signed Integer Varies, see below.
ID 32-bit little-endian Signed Integer Varies, see below.
Type 32-bit little-endian Signed Integer Varies, see below.
Body Null-terminated ASCII String Varies, see below.
Empty String Null-terminated ASCII String 0x00
Packet Size

The packet size field is a 32-bit little endian integer, representing the length of the request in bytes. Note that the packet size field itself is not included when determining the size of the packet, so the value of this field is always 4 less than the packet's actual length. The minimum possible value for packet size is 10:
Size Containing
4 Bytes ID Field
4 Bytes Type Field
At least 1 Byte Packet body (potentially empty)
1 Bytes Empty string terminator

Since the only one of these values that can change in length is the body, an easy way to calculate the size of a packet is to find the byte-length of the packet body, then add 10 to it.

The maximum possible value of packet size is 4096. If the response is too large to fit into one packet, it will be split and sent as multiple packets. See "Multiple-packet Responses" below for more information on how to determine when a packet is split.
Sei doch bitte einmal so nett und beschreibe was Du daran nicht verstehst.

Gruß
K-H
Lies dir das nochmal durch. Oder im Idealfall sogar das auf der Webseite selbst.
Nur einen String zu schicken reicht nicht.
Ich habe es mir schon bestimmt 100 mal Durchgelesen^^ Nur weiß ich nicht wie ich das umsetzen soll bzw kann...
  Mit Zitat antworten Zitat
Benutzerbild von Uwe Raabe
Uwe Raabe

Registriert seit: 20. Jan 2006
Ort: Lübbecke
11.650 Beiträge
 
Delphi 12 Athens
 
#10

AW: ARK (Survival Evolved) RCON Client Delphi

  Alt 14. Okt 2019, 17:01
Ich habe es mir schon bestimmt 100 mal Durchgelesen^^ Nur weiß ich nicht wie ich das umsetzen soll bzw kann...
Womit wir wieder bei Post #11 wären.
Uwe Raabe
Certified Delphi Master Developer
Embarcadero MVP
Blog: The Art of Delphi Programming
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 1 von 2  1 2   

 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
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

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:13 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz