Author Topic: Modding *Sammelthread*  (Read 27281 times)

0 Members and 1 Guest are viewing this topic.

Gavagai

  • Knight at Arms
  • *
    • View Profile
  • Faction: Swadian
  • WBWF&SNW
Re: Modding *Sammelthread*
« Reply #300 on: November 16, 2011, 08:01:57 AM »
Ach so :shock:.
Sorry, dass ich euch gestört habe.
Ich hatte mir eine andere Bedeutung gedacht.
« Last Edit: November 16, 2011, 04:08:23 PM by Ke »

Ritter Dummbatz

  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Khergit
Re: Modding *Sammelthread*
« Reply #301 on: November 16, 2011, 08:11:36 AM »
Ach gestört wäre jetzt übertrieben. Irgendwie macht es auch Spaß dich ein bißchen zu ärgern.  :P

Gavagai

  • Knight at Arms
  • *
    • View Profile
  • Faction: Swadian
  • WBWF&SNW
Re: Modding *Sammelthread*
« Reply #302 on: November 16, 2011, 03:16:36 PM »
Du bist gemein!  :evil:
(Aber trotzdem nett :P)

Gibt es auch eine Möglichkeit aus dem Module System sachen in *.txt dateien zu exportieren/ zu schreiben/zu speichern?
« Last Edit: November 16, 2011, 04:08:49 PM by Ke »

Beobart

  • Grandmaster Knight
  • *
  • Nude n´ Drunken
    • View Profile
  • Faction: Nord
  • MP nick: Hungry Wolf
Re: Modding *Sammelthread*
« Reply #303 on: November 16, 2011, 04:16:49 PM »
 :lol:

Gavagai

  • Knight at Arms
  • *
    • View Profile
  • Faction: Swadian
  • WBWF&SNW
Re: Modding *Sammelthread*
« Reply #304 on: November 16, 2011, 04:23:56 PM »
War das auf meine Frage bezogen oder einfach nur Spam?

Beobart

  • Grandmaster Knight
  • *
  • Nude n´ Drunken
    • View Profile
  • Faction: Nord
  • MP nick: Hungry Wolf
Re: Modding *Sammelthread*
« Reply #305 on: November 16, 2011, 04:28:56 PM »
Deine Frage.

Wozu glaubst du ist das MS gut?

Gavagai

  • Knight at Arms
  • *
    • View Profile
  • Faction: Swadian
  • WBWF&SNW
Re: Modding *Sammelthread*
« Reply #306 on: November 16, 2011, 04:51:55 PM »
Ich meinte im Code.
Also, wenn ich z.B. eine Variable in eine *.txt datei reinschreiben möchte (mehrer) während des Spiels!!! Wie würde das gehen?
(Das das Kompilen das macht weiß ich selber.)

Duh

  • Grandmaster Knight
  • *
  • I like the way you taste.
    • View Profile
  • Faction: Rhodok
  • MP nick: Sir Simpleton
  • M&BWB
Re: Modding *Sammelthread*
« Reply #307 on: November 16, 2011, 05:11:07 PM »
Meine Fresse, benutz doch bitte endlich mal die deutsche Sprache.

Wenn man dich nicht verstehen kann, kann man dir auch nicht helfen.

Edit: Diplomacy update
Modding Wiki
Silverstag - I cant believe its not butter

Class - we haz it.
I hate when your tampon string gets lost in your inner labia.
There's a massive turd in my rectum that's really annoying me, so I'm off to

Gavagai

  • Knight at Arms
  • *
    • View Profile
  • Faction: Swadian
  • WBWF&SNW
Re: Modding *Sammelthread*
« Reply #308 on: November 16, 2011, 05:19:50 PM »
Ehrlich gesagt weiß ich nicht, was daran unverständlich ist.
Nun mal ganz simpel.
Code: [Select]
Script xyz
Schreibe: 'Ich weiß nicht wie ich das umschreiben soll' in neuetxt.txt
endscript
Was ich damit sagen möchte:
Ich möchte inhalte während des Spiels in *.txt Dateien schreiben.
Dazu benutze ich dieses Script.
Leider fehlt mir der exakte Code.
Deswegen wollte ich euch fragen.
Ein anwendungsbeispiel:
Ich drücke auf knopf xyz in einer Presentation, dieses Script wird aufgerufen, es erstellt eine *.txt Datei die 'neuetxt.txt' heißt und schreibt dort dann 'Ich weiß nicht wie ich das umschreiben soll' rein.
Mehr nicht.
Das genze wird während des Spiels ausgeführt, und nicht, wenn ich auf build_module.bat doppelklicke.
Ich hoffe, dass es spätestens jetzt verständlich ist.

Duh

  • Grandmaster Knight
  • *
  • I like the way you taste.
    • View Profile
  • Faction: Rhodok
  • MP nick: Sir Simpleton
  • M&BWB
Re: Modding *Sammelthread*
« Reply #309 on: November 16, 2011, 05:28:23 PM »
Unverständlich war der Post weil,
- nonexistente Wörter benutzt wurden, die sich auch im Kontext nicht erschliessen
- du eine Variable in ein Textdokument schreiben willst, anstatt sie direkt im Spiel zu verändern
- Rechtschreibfehler nach gewisser Zeit einfach nur noch nerven

Eine Textdatei aus dem Spiel heraus zu kompilen ist nicht möglich - außer du hackst das Spiel. Es ist möglich Variablen über eine Presentation zu verändern. Es ist möglich, dass module system zu verändern und es zu kompilen, während das Spiel läuft. Danach kann man dann im Spiel die Textdateien neu laden.
Modding Wiki
Silverstag - I cant believe its not butter

Class - we haz it.
I hate when your tampon string gets lost in your inner labia.
There's a massive turd in my rectum that's really annoying me, so I'm off to

Gavagai

  • Knight at Arms
  • *
    • View Profile
  • Faction: Swadian
  • WBWF&SNW
Re: Modding *Sammelthread*
« Reply #310 on: November 16, 2011, 05:35:39 PM »
Ich möchte nichts Kompilen etc.
Ich möchte nur ein .txt dokument öffnen einen Satz reinschreiben und wieder schlißen.
Vielleicht möchte ich auch nochmal eine Information auslesen.
Bei den Variablen geht es um Einstellungen, die Immer fest sein sollen, nachdem der Benutzer sie einmal festgelegt hat. Auch wenn er ein neues Spiel angefangen hat etc.
So ähnlich wie z.B. eine config.ini bloß als .txt datei. Kann aber auch meinetwegen eine .ini Datei sein.

Duh

  • Grandmaster Knight
  • *
  • I like the way you taste.
    • View Profile
  • Faction: Rhodok
  • MP nick: Sir Simpleton
  • M&BWB
Re: Modding *Sammelthread*
« Reply #311 on: November 16, 2011, 05:36:22 PM »
Eine Textdatei aus dem Spiel heraus zu kompilen ist nicht möglich - außer du hackst das Spiel. Es ist möglich Variablen über eine Presentation zu verändern. Es ist möglich, dass module system zu verändern und es zu kompilen, während das Spiel läuft. Danach kann man dann im Spiel die Textdateien neu laden.

Du kannst keine Daten aus dem Spiel in eine Textdatei übertragen, außer es handelt sich wie hier erwähnt um Variablen.

(assign, reg
(str_store_string, str_x
(set_slot,

Edit:

Um das etwas zu erklären - Du machst eine Textbox zum Eingeben. Je nachdem was du machen willst, kannst du hier entweder den Text oder die Zahl eingeben, die du speichern willst. Je nach Nutzung legst du vorher fest in welchem reg, string oder slot die Eingabe gespeichert werden soll. Du kannst natürlich auch einen Combobutton hinzufügen um zwischen mehreren Optionen zu wählen. Bei slots könntest du auch ein weitere Textbox hinzufügen um die Slot id einzugeben (siehe constants).
« Last Edit: November 16, 2011, 05:48:43 PM by Duh »
Modding Wiki
Silverstag - I cant believe its not butter

Class - we haz it.
I hate when your tampon string gets lost in your inner labia.
There's a massive turd in my rectum that's really annoying me, so I'm off to

Gavagai

  • Knight at Arms
  • *
    • View Profile
  • Faction: Swadian
  • WBWF&SNW
Re: Modding *Sammelthread*
« Reply #312 on: November 16, 2011, 06:02:00 PM »
Schade.
Muss ich bei strings nicht einen Spielstand laden? (bei Variablen und Slots muss ich das doch auf jeden fall, oder?)

Gotha

  • Grandmaster Knight
  • *
  • Eine neue Macht erhebt sich!
    • View Profile
  • Faction: Rhodok
  • MP nick: [Adimi]Gotha
  • M&BWBWF&SNW
Re: Modding *Sammelthread*
« Reply #313 on: November 16, 2011, 07:00:58 PM »
Per WSE kannst du dateien auslesen und neue anlegen.





oder du machst es per Php... Ein Php Script legt spalten in einer Datenbank an oder bearbeitet ne Textdatei oder sonstiges und man entfängt halt antworten vom server etc... Läuft aber nur Server seits.






Ach ja hier die WSE Commands


Code: [Select]
dict_create = 3200 #(dict_create, <destination>), #Creates an empty dictionary object and stores it into <destination>
dict_free = 3201 #(dict_free, <dict>), #Frees the dictionary object <dict>. A dictionary can't be used after freeing it
dict_load_file = 3202 #(dict_load_file, <dict>, <file>, [<mode>]), #Loads a dictionary file into <dict>. Setting [<mode>] to 0 (default) clears <dict> and then loads the file, setting [<mode>] to 1 doesn't clear <dict> but overrides any key that's already present, [<mode>] to 2 doesn't clear <dict> and doesn't overwrite keys that are already present
dict_load_dict = 3203 #(dict_load_dict, <dict_1>, <dict_2>, [<mode>]), #Loads <dict_2> into <dict_1>. [<mode>]: see above
dict_save = 3204 #(dict_save, <dict>, <file>), #Saves <dict> into a file. For security reasons, <file> is just a name, not a full path, and will be stored into a WSE managed directory
dict_clear = 3205 #(dict_clear, <dict>), #Clears all key-value pairs from <dict>
dict_is_empty = 3206 #(dict_is_empty, <dict>), #Fails if <dict> is not empty
dict_has_key = 3207 #(dict_has_key, <dict>, <key>), #Fails if <key> is not present in <dict>
dict_get_size = 3208 #(dict_get_size, <destination>, <dict>), #Stores the count of key-value pairs in <dict> into <destination>
dict_delete_file = 3209 #(dict_delete_file, <file>), #Deletes dictionary file <file> from disk
dict_get_str = 3210 #(dict_get_str, <string_register>, <dict>, <key>, [<default>]), #Stores the string value paired to <key> into <string_register>. If the key is not found and [<default>] is set, [<default>] will be stored instead. If [<default>] is not set, an empty string will be stored
dict_get_int = 3211 #(dict_get_int, <destination>, <dict>, <key>, [<default>]), #Stores the numeric value paired to <key> into <destination>. If the key is not found and [<default>] is set, [<default>] will be stored instead. If [<default>] is not set, 0 will be stored
dict_set_str = 3212 #(dict_set_str, <dict>, <key>, <string_no>), #Adds (or changes) <string_no> as the string value paired to <key>
dict_set_int = 3213 #(dict_set_int, <dict>, <key>, <value>), #Adds (or changes) <value> as the numeric value paired to <key>

« Last Edit: November 16, 2011, 07:45:14 PM by Gotha »
Senin anneni ağaca asıp havada sikiyim orospu çocuğu seni.Olum senin gibi milletini satan götveren ibne görmedim.

Duh

  • Grandmaster Knight
  • *
  • I like the way you taste.
    • View Profile
  • Faction: Rhodok
  • MP nick: Sir Simpleton
  • M&BWB
Re: Modding *Sammelthread*
« Reply #314 on: November 16, 2011, 09:34:15 PM »
Schade.
Muss ich bei strings nicht einen Spielstand laden? (bei Variablen und Slots muss ich das doch auf jeden fall, oder?)
Nein. Alle 3 werden doch permanent im Spiel verändert. Als Beispiel - jedes mal wenn sich ein town menu öffnet, wird der string mit dem Namen der Stadt überschrieben.

@Gotha - und damit kann man die Textdateien des Spiels bearbeiten, während das Spiel läuft?
Modding Wiki
Silverstag - I cant believe its not butter

Class - we haz it.
I hate when your tampon string gets lost in your inner labia.
There's a massive turd in my rectum that's really annoying me, so I'm off to