Ein paar Scriptfragen.

Hilfe bei der Erstellung von Fallout 1 / 2 Modifikationen, sowie Werbung und Ankündigungen.

Moderators: Newsposter, Global Moderator, Zugriff Intern, Moderator

User avatar
Lexx
Administrator
Posts: 27348
Joined: Sat Dec 10, 2005 6:27 pm

Re: Ein paar Scriptfragen.

Post by Lexx »

Alter, ich hab dir oben geschrieben, dass du das wohl zeitlich gesteuert aufrufen musst. Also genau das, was Jordan dir jetzt nur komplett vorgeschrieben hat. :s000:
only when you no-life you can exist forever, because what does not live cannot die
User avatar
Mr.Wolna
Moderator
Posts: 12939
Joined: Sun Oct 28, 2007 8:54 pm

Re: Ein paar Scriptfragen.

Post by Mr.Wolna »

ich weiß Lexx, ich bin aber die letzten Tage am FWBC gehangen, und jetzt komm ich hier vorbei, und sehe das ich nichts mehr machen muss um das Poblem, zu lösen. So hätte ich es selber gemacht, wollte sowieso Heute mal wieder scripten und jetzt habe ich doppelt so viel Bock.

Ist auf jedenfall spaßiger als ne GUI zu programmieren^^. Aber erstmal muss ich das Tutorial zu Ende übersetzen.
RPÜ/German Restoration Project Tanslation
Ich habe ein Gewehr, eine Schaufel und 5 Hektar Land hinter dem Haus. Man wird dich nie finden - leg dich also nicht mit mir an!   <br />
Ashbury wrote:P.s. Nein es ist nicht die Gewalt was mich an der Fallout Reihe gereizt hat,aber sie war immer die Kirsche auf der Sahnetorte ( Und ich will verdammt nochmal ne Kirsche oben drauf haben)
User avatar
Mr.Wolna
Moderator
Posts: 12939
Joined: Sun Oct 28, 2007 8:54 pm

Re: Ein paar Scriptfragen.

Post by Mr.Wolna »

ok code angepasst, udn passt so ganz gut, das problem ist das mann jetz den typ jedes mal auf die fresse fliegen lassen kann? wie mach ich das, es nur einmalig passiert?

GVAR?
RPÜ/German Restoration Project Tanslation
Ich habe ein Gewehr, eine Schaufel und 5 Hektar Land hinter dem Haus. Man wird dich nie finden - leg dich also nicht mit mir an!   <br />
Ashbury wrote:P.s. Nein es ist nicht die Gewalt was mich an der Fallout Reihe gereizt hat,aber sie war immer die Kirsche auf der Sahnetorte ( Und ich will verdammt nochmal ne Kirsche oben drauf haben)
User avatar
Lexx
Administrator
Posts: 27348
Joined: Sat Dec 10, 2005 6:27 pm

Re: Ein paar Scriptfragen.

Post by Lexx »

Bau eine lokale Variable und eine Abfrage ein. "Wenn LVAR_auf_die_fresse == 0, dann beginne..." und setz in der Abfrage die LVAR dann auf 1.
only when you no-life you can exist forever, because what does not live cannot die
User avatar
Mr.Wolna
Moderator
Posts: 12939
Joined: Sun Oct 28, 2007 8:54 pm

Re: Ein paar Scriptfragen.

Post by Mr.Wolna »

Aey, verstanden, danke Lexx.
RPÜ/German Restoration Project Tanslation
Ich habe ein Gewehr, eine Schaufel und 5 Hektar Land hinter dem Haus. Man wird dich nie finden - leg dich also nicht mit mir an!   <br />
Ashbury wrote:P.s. Nein es ist nicht die Gewalt was mich an der Fallout Reihe gereizt hat,aber sie war immer die Kirsche auf der Sahnetorte ( Und ich will verdammt nochmal ne Kirsche oben drauf haben)
User avatar
Lexx
Administrator
Posts: 27348
Joined: Sat Dec 10, 2005 6:27 pm

Re: Ein paar Scriptfragen.

Post by Lexx »

Jemand 'ne Ahnung, wie man hier sinnig die deutschen Umlaute einbauen könnte?

Code: Select all

procedure get_char(var ostr, var str) begin
    if ostr==str then return "";

    cmp("A")
        cmp("1")
            cmp(")")
                cmp("%")
                    cmp("#")
                        charv_(" ","!");
                        charv("!","\"");
                        charv("\"","#");
                    end else begin
                        charv_("#","$");
                        charv("$","%");
                    end
                end else begin  
                    charv_("%","&");
                    charv("&","'");
                    charv("'","(");
                    charv("(",")");
                end
            end else cmp("-")
                charv_(")","*");
                charv("*","+");
                charv("+",",");
                charv(",","-");
            end else begin
                charv_("-",".");
                charv(".","/");
                charv("/","0");
                charv("0","1");
            end
        end else cmp("9")
            cmp("5")
                cmp("3")
                    charv_("1","2");
                    charv("2","3");
                end else begin
                    charv_("3","4");
                    charv("4","5");
                end
            end else cmp("7")
                charv_("5","6");
                charv("6","7");
            end else begin
                charv_("7","8");
                charv("8","9");
            end
        end else cmp("=")
            cmp(";")
                charv_("9",":");
                charv(":",";");
            end else begin
                charv_(";","<");
                charv("<","=");
            end
        end else cmp("?")
            charv_("=",">");
            charv(">","?");
        end else begin
            charv_("?","@");
            charv("@","A");
        end
    end else cmp("a")
        cmp("Q")
            cmp("I")
                cmp("E")
                    cmp("C")
                        charv_("A","B");
                        charv("B","C");
                    end else begin
                        charv_("C","D");
                        charv("D","E");
                    end
                end else cmp("G")
                    charv_("E","F");
                    charv("F","G");
                end else begin
                    charv_("G","H");
                    charv("H","I");
                end
            end else cmp("M")
                cmp("K")
                    charv_("I","J");
                    charv("J","K");
                end else begin
                    charv_("K","L");
                    charv("L","M");
                end
            end else cmp("O")
                charv_("M","N");
                charv("N","O");
            end else begin
                charv_("O","P");
                charv("P","Q");
            end
        end else cmp("Y")
            cmp("U")
                cmp("S")
                    charv_("Q","R");
                    charv("R","S");
                end else begin
                    charv_("S","T");
                    charv("T","U");
                end
            end else cmp("W")
                charv_("U","V");
                charv("V","W");
            end else begin
                charv_("W","X");
                charv("X","Y");
            end
        end else cmp("]")
            cmp("[")
                charv_("Y","Z");
                charv("Z","[");
            end else begin
                charv_("[","\\");
                charv("\\","]");
            end
        end else cmp("_")
            charv_("]","^");
            charv("^","_");
        end else begin
            charv_("_","`");
            charv("`","a");
        end
    end else cmp("q")
        cmp("i")
            cmp("e")
                cmp("c")
                    charv_("a","b");
                    charv("b","c");
                end else begin
                    charv_("c","d");
                    charv("d","e");
                end
            end else cmp("g")
                charv_("e","f");
                charv("f","g");
            end else begin
                charv_("g","h");
                charv("h","i");
            end
        end else cmp("m")
            cmp("k")
                charv_("i","j");
                charv("j","k");
            end else begin
                charv_("k","l");
                charv("l","m");
            end
        end else cmp("o")
            charv_("m","n");
            charv("n","o");
        end else begin
            charv_("o","p");
            charv("p","q");
        end 
    end else cmp("y")
        cmp("u")
            cmp("s")
                charv_("q","r");
                charv("r","s");
            end else begin
                charv_("s","t");
                charv("t","u");
            end
        end else cmp("w")
            charv_("u","v");
            charv("v","w");
        end else begin
            charv_("w","x");
            charv("x","y");
        end
    end else cmp("{")
        charv_("y","z");
        charv("z","{");
    end else begin
        charv_("{","|");
        charv("|","}");
        charv("}","~");
    end
    return "";
end
only when you no-life you can exist forever, because what does not live cannot die
User avatar
le Chew
Atomsprengkopf
Posts: 2826
Joined: Mon May 14, 2007 1:35 pm
Location: Bärlin
Contact:

Re: Ein paar Scriptfragen.

Post by le Chew »

@Lexx

Nicht wirklich - wobei ich dazusagen muss das ich mich schlichtweg weigere, überhaupt zu versuchen durch dieses Konstrukt durchzusteigen. Gibts das auch in schön & mit Kommentaren?
User avatar
Lexx
Administrator
Posts: 27348
Joined: Sat Dec 10, 2005 6:27 pm

Re: Ein paar Scriptfragen.

Post by Lexx »

Die einzigen verfügbaren Kommentare sind sowieso Russisch und bei mir hier auf dem PC unlesbar.

Ich habe auch absolut und 0 Ahnung, was das Ding da oben soll. Ich meine, die Funktion scheint klar. Aber der Aufbau ist so unwirklich... wirklich.

Ich dachte erst, die Buchstaben stehen dort in der Reihenfolge wie in der *.FON Datei, war aber nicht so. Dann dachte ich, evtl. zählen die von hinten.. Z, Y, X,... aber war auch nicht.

Das ist alles so ... hmm.
only when you no-life you can exist forever, because what does not live cannot die
User avatar
Mr.Wolna
Moderator
Posts: 12939
Joined: Sun Oct 28, 2007 8:54 pm

Re: Ein paar Scriptfragen.

Post by Mr.Wolna »

Frag doch mal die Autoren  ;)

btw: die RedmE der englishe Datei ist english^^ Wei aber auch nicht wide dir die helfen soll -.-


Readme:
[spoiler]

Code: Select all

================================================================================

                                 TeamX presents

                              "Fallout2: MrFixit"

                                      v1.1

================================================================================

 "MrFixit"  is  more  an  add-on,  than  a  mod, that adds the ability to batch
 various  items  by  your own hands to the game. To be some more correct, it is
 not an add-on - it is a tool, which allow you to think out and add to the game
 new  items to batch and use this idea in Your own mod. Text below explains how
 to do this.

 Contents:

 0. Changes from v1.0
 1. Description
 2. Installation
 3. Compatibility with the other mods
 4. Data structure
 5. Integration
 6. Known problems
 7. About Us
 8. Acknowledgements


--------------------------------------------------------------------------------

 0. Changes from v1.0

--------------------------------------------------------------------------------

 The  interface  has  been  redrawn  in version 1.1 (thanks $py for that), some
 algorithms  have  been  changed  a little either. While selecting an object to
 batch, the left window now represents an idle logo picture (w_idle.pcx).

--------------------------------------------------------------------------------

 1. Description

--------------------------------------------------------------------------------

 "MrFixit" is a little toolkit that always with you... with The Chosen One.
 We`ve been thinking about design for long and finally decided to "hang"
 "MrFixit" on the Dude description. Just choose "binoculars" on The Chosen One,
 and you'll see the "MrFixit" interface. The interface consists of three
 windows: item information (left), current messages (up-right) and  options
 (down-right). Untill you choose any item, the description window will be empty.
 But as soon as you choose any item from the list in the options window, you'll
 see item's picture in the description window, a list of required
 tools/skills/components etc and time, needed to batch/dismantle one unit of
 the selected item. Meanwhile in the message window you can see the description
 of the selected item.
 There are three different sections in the description window: "Tools", "Skills"
 and "Components". "Skills" section displays the required skill and its minimal
 level. "Tools" section displays required tools. Tools are used to batch and
 dismantle items and they do not disappear after batch/dismantle (You don't want
 your tools to disappear each time you use it, right? ;). In the "Components"
 section You can see a components your item consists of. This section displays
 required components and its quantity to batch one item. Components disappear
 after batch and they are returned by dismantle. Once you can batch or dismantle
 one item or the maximum possible quantity of items if you have enough
 components. The ammount of time you'll spend on this operation will be equal to
 number of items being batched/dismantled multiplied by the ammount of time to
 batch/dismantle one such item. You can't dismantle every item: it is possible
 to take the Leather Armor to pieces, but it is impossible to "unsharpen" spear
 to a spear and a piece of flint :). There may be not all possible items in the
 batch list. Item will be displayed in the list only if PC "knows" how to batch
 it. To keep the compatibility we didn't include such items in this version. But
 You have to know, that this possibility exist and you can manage it through the
 game globals.

 ATTENTION! All items, included in this version, are just examples! If You want
 to add or change any item just do it by yourself!

--------------------------------------------------------------------------------

 2. Installation

--------------------------------------------------------------------------------

 Since "MrFixit" uses obj_dude.int, You'll have to remove it from patch000.dat.
 Or to remove patch000.dat itself.
 
 DO NOT FORGET TO MAKE COPIES OF PATCH000.DAT AND DATA FOLDER!!!

 If You're using dat2 and FAR, just open patch000.dat and delete the file
 patch000.dat\SCRIPTS/obj_dude.int. Then copy the content of the folder MRFIXIT
 from this archive to the DATA folder and run Fallout2. You don't need to start
 a new game to see the changes.

 If you're not using dat2, see follow the steps below:
 1. Download dat-unpacker
    http://www.teamx.ru/utils/dat_explorer.rar
 2. Unpack the content of the patch000.dat in the DATA folder.
 3. Delete patch000.dat.
 4. Copy the content of the MRFIXIT folder from this archive to the DATA folder
    (overwrite old files).
 5. IMPORTANT! Be sure that all *.pro files have "read only" attribute!!!
 6. Run Fallout2, You don't need to start a new game to see the changes.

 If you're experiencing problems, look at the section 6 - "Known problems".

--------------------------------------------------------------------------------

 3. Compatibility with the other mods

--------------------------------------------------------------------------------

 "MrFixit" is compatible with all mods, that do not change obj_dude.int and
 test0.msg. Some mods, such as "New Vision", include patch v1.02d, which
 contains obj_dude.int. To check the changes extract obj_dude.int from your
 patch000.dat v1.02d and compare it with obj_dude.int from the mod (For
 example you can do it with the "fc" command. For more information see your
 Windows manual.)

 NOTE: "New Vision" includes "pure" obj_dude.int from version 1.02d.

 If You want to integrate "MrFixit" in the mod with changed obj_dude.int, see
 section 5 - "Integration".

--------------------------------------------------------------------------------

 4. Data structure

--------------------------------------------------------------------------------

 All data "MrFixit" needs are located in the test0.msg. It's a second entry
 in the any version of scripts.lst. We used it to keep compatibility with the
 other mods.

 ATTENTION! To avoid unnecessary meshing (and slowing) of the algorithms, we
 didn't set up error protection! If you'll make an error in the data, Fallout
 will crash or you'll have many many bugs. To avoid this read this section
 carefully and double check your data before running the game!

 IMPORTANT! Do not change lines from 19 to 36! This could cause the wrong
 behaviour of the script!

 Basic rules:

 Items descriptions start at the line 500. Any item can use 25 lines maximum.
 You can't skip lines inside one description! Section numbers must follow every
 25 lines without skipping! Spaces do not allowed! Sections [TOOLS],  [SKILLS]
 and [COMPONENTS] must be presented! Empty lines in these sections do not
 allowed!

 Data structure:

 {500}{}{[ITEM]}             # section start marker
 {501}{}{999}                # item PID
 {502}{}{pcx/items/mola.pcx} # picture path (relative to the DATA folder)
 {503}{}{100010}             # picture size = w * 1000 + h (max = 150 * 1000 + 60)
 {504}{}{999}                # GVAR number that allows batch (or empty)
 {505}{}{999}                # time to batch/dismantle in the game ticks
 {506}{}{YES}                # can dismantle? (YES/NO)
 {507}{}{[TOOLS]}            # tools section marker
 {508}{}{999}                # tool PID
 {509}{}{999|998|997}        # PID1|PID2|PID3 (PID1 or PID2 or PID3)
 {510}{}{[SKILLS]}           # skills section marker
 {511}{}{SKILL_REPAIR:30}    # skill:level
 {512}{}{SKILL_THROWING:20}  # skill:level
 {513}{}{SKILL_TRAPS:10}     # skill:level
 {514}{}{[COMPONENTS]}       # components section marker
 {515}{}{999:9}              # PID:quantity
 {516}{}{999:9}              # PID:quantity
 {517}{}{999:9}              # PID:quantity

 You can find examples in test0.msg.

 Explanations:
 1. You can find PID (Prototype IDentifier) number using mapper or header file
    itempid.h.
 2. One game second == 10 game ticks.
 3. "YES" and "NO" must be uppercase. Using lowercase will cause an error.
 4. If any section is empty (unused), it's marker must be presented, and
    just after this marker must follow next section marker:
    {507}{}{[TOOLS]}            # tolls section marker
    {508}{}{[SKILLS]}           # skills section marker
    {509}{}{SKILL_REPAIR:30}
 5. You can join tools with the '|' symbol. This allows You to use any of the
    following tools:
    {508}{}{4|45|236}           # PID_KNIFE|PID_THROWING_KNIFE|PID_COMBAT_KNIFE
    This entry means that PC can use any of the following tools to batch item.
 6. Skill names for the [SKILLS] section are taken from the table located from
    line 19 to line 36.
    SKILL_REPAIR:30 means that repair skill must be greater than or equal to 30.

--------------------------------------------------------------------------------

 5. Integration

--------------------------------------------------------------------------------

 You can use, distribute and change "MrFixit" code without any permission,
 untill you keep the authorship.

 If you want to use "MrFixit" in your mod or integrate it in any other mod, you
 will need:
 1. BIS headers.
 2. ssl compiler.
 3. Sources from this archive.

 File list:
 atoi2.ssl, custstr2.ssl - "string libraries",
 test0.ssl - main "MrFixit" code,
 obj_dude.ssl - little bit changed obj_dude.int.

 Main files are atoi2.ssl, custstr2.ssl and test0.ssl.
 
 The example of using the code is given in obj_dude.ssl:
 1. Copy the main files in the same folder with your script.
 2. Include test0.ssl to your script:
    #include "test0.ssl"
 3. Call initialiser - batch_init:
    procedure description_p_proc begin
        if (not(combat_is_initialized)) then begin
            script_overrides;
            call batch_init;
        end
    end
    The control if (not(combat_is_initialized)) needed to disable batch during
    the combat, script_overrides overloads the default procedure
    description_p_proc, and batch_init initialises and runs batch. You can use
    this logic the same way in any script you want, for example int the
    workbench script:
    procedure use_p_proc begin
        if (not(combat_is_initialized)) then begin
            script_overrides;
            call batch_init;
        end
    end

 Items and windows pictures are located in the PCX folder. "MrFixit" uses so
 called "interface mode" which operates only with the pcx-graphics.

 If You have any questions about the code, just ask me, Wasteland Ghost
 (wasteland_ghost@mail.ru), or Raven (raven-umr-@mail.ru).

--------------------------------------------------------------------------------

 6. Known problems

--------------------------------------------------------------------------------

 Since "MrFixit" uses the "interface mode" which has a lot of unknown parts,
 there are some restrictions:
 1. All pictures must be in pcx format.
 2. Text that is displayed in the description window (left window) can not
    exceed window size. If text length exceeds window width it will cause the
    game to crash. So do not use long names and a lot of
    tools/skills/components! 

--------------------------------------------------------------------------------

 7. About Us

--------------------------------------------------------------------------------

 You can locate us at: www.teamx.ru

 If you have any questions write to
 Wasteland Ghost: wasteland_ghost@mail.ru
 Also send your bug reports there, or post them in our forum.

 If You have any questions about the code, write me, Wasteland Ghost
 (wasteland_ghost@mail.ru), or Raven (raven-umr-@mail.ru).
 
--------------------------------------------------------------------------------

 8. Acknowledgements

--------------------------------------------------------------------------------

 - Refiler - for throwing down a challenge :)
 - Anchorite - for the compiler/decompiler
 - Raven     - for the "string libraries" and persistence
 - SpyBomb   - for the pictures and advices
 - $py       - for the new interface, pictures, useful comments and translation
 - Strongholder - for testing
 - Izuken  - for the attempt ;)
 - Every  member of the TeamX of the present, as well as everyone for the
   moral support.
 - And, of course, BlackIsle Studios - for such a great game!
 
 That's all. Let's hope this isn't the last time you're reading a readme file
 to a TeamX creation ;).

 May the fate smile down on your path in the Wasteland!
 
 ----
 Wasteland Ghost, TeamX
 23.09.2005
[/spoiler]
Last edited by Mr.Wolna on Wed Sep 10, 2008 4:39 pm, edited 1 time in total.
RPÜ/German Restoration Project Tanslation
Ich habe ein Gewehr, eine Schaufel und 5 Hektar Land hinter dem Haus. Man wird dich nie finden - leg dich also nicht mit mir an!   <br />
Ashbury wrote:P.s. Nein es ist nicht die Gewalt was mich an der Fallout Reihe gereizt hat,aber sie war immer die Kirsche auf der Sahnetorte ( Und ich will verdammt nochmal ne Kirsche oben drauf haben)
User avatar
Lexx
Administrator
Posts: 27348
Joined: Sat Dec 10, 2005 6:27 pm

Re: Ein paar Scriptfragen.

Post by Lexx »

Ich verstehe nicht, warum du die Readme noch mal reinkopierst? Die liegt bei MrFixit bei.

Desweiteren schreibe ich schon die ganze Zeit mit Wasteland Ghost, aber er ist sehr zurückhaltend mit seinen Antworten. Also selbst wenn ich eine Antwort meine meine letzte Frage bekomme, erwarte ich nicht sehr viel.

Höchstwahrscheinlich werde ich die Idee, ein Crafting-System in meine Mod mit einzubauen, verwerfen müssen.
only when you no-life you can exist forever, because what does not live cannot die
User avatar
Mr.Wolna
Moderator
Posts: 12939
Joined: Sun Oct 28, 2007 8:54 pm

Re: Ein paar Scriptfragen.

Post by Mr.Wolna »

weil ich dachte das du sie auf deiner Machine nicht sehen kannst :P

Ah was Lexx, wegen den Umlauten willst du jetz alles verwerfen? Wie wärs wenn du einfach statt Ä ae nimmts und so weiter?
RPÜ/German Restoration Project Tanslation
Ich habe ein Gewehr, eine Schaufel und 5 Hektar Land hinter dem Haus. Man wird dich nie finden - leg dich also nicht mit mir an!   <br />
Ashbury wrote:P.s. Nein es ist nicht die Gewalt was mich an der Fallout Reihe gereizt hat,aber sie war immer die Kirsche auf der Sahnetorte ( Und ich will verdammt nochmal ne Kirsche oben drauf haben)
User avatar
Lexx
Administrator
Posts: 27348
Joined: Sat Dec 10, 2005 6:27 pm

Re: Ein paar Scriptfragen.

Post by Lexx »

Ich kann nur russische Zeichen auf dem Rechner nicht sehen...


Wenn ich alle ä und ü usw. mit ae und ue austausche, muss ich das in _allen_ Itembeschreibungen machen und das will ich einfach nicht, weil ae usw. 1. schlecht lesbar ist und 2. blöd aussieht.
only when you no-life you can exist forever, because what does not live cannot die
User avatar
Micky
FoCafé Member
Posts: 8167
Joined: Fri Jun 20, 2008 1:01 am
Location: Amberg
Contact:

Re: Ein paar Scriptfragen.

Post by Micky »

Jo nur wegen paar Umlaute alles verwerfen find ich auch Schwachsinn. Ich denke das kann man verkraften. ::)
Image

Brian Fargo während der Arbeit an Wasteland 2 zum Thema 'Publisher': "I don’t have any crazy people in my office telling me what to do."
User avatar
Mr.Wolna
Moderator
Posts: 12939
Joined: Sun Oct 28, 2007 8:54 pm

Re: Ein paar Scriptfragen.

Post by Mr.Wolna »

Lexx ist eben Perfektionist, entwider ganz oder gar nichts ;)
Denek da kann dir nur der Autor helfen, Lexx!
RPÜ/German Restoration Project Tanslation
Ich habe ein Gewehr, eine Schaufel und 5 Hektar Land hinter dem Haus. Man wird dich nie finden - leg dich also nicht mit mir an!   <br />
Ashbury wrote:P.s. Nein es ist nicht die Gewalt was mich an der Fallout Reihe gereizt hat,aber sie war immer die Kirsche auf der Sahnetorte ( Und ich will verdammt nochmal ne Kirsche oben drauf haben)
User avatar
Helios2000
Paladin
Posts: 660
Joined: Tue Aug 15, 2006 2:35 pm
Contact:

Re: Ein paar Scriptfragen.

Post by Helios2000 »

Lexx guck dir das doch mal genauer an:  ;)

Code: Select all

#define charv(x,y)  else if ostr>=str+x and ostr<str+y then return x
#define charv_(x,y) if ostr>=str+x and ostr<str+y then return x
#define cmp(x)      if ostr<str+x then begin
Image
Si vis pacem, para bellum.
User avatar
Lexx
Administrator
Posts: 27348
Joined: Sat Dec 10, 2005 6:27 pm

Re: Ein paar Scriptfragen.

Post by Lexx »

Hab ich schon. Das sieht für mich so aus:

Code: Select all

#define charv(x,y)  else if ostr>=stsdfsdfsdfdsfsd ft then return x
#define charv_(x,y) if ostr>=stasdfasdfasfas asf n return x
#define cmp(x)      if dsf asf asdf asdf x then begin
Wasteland Ghost meint, es liegt nicht am Script, sondern muss mit den Dateien zusammen hängen. Ich bin mir da aber nicht so sicher... Er muss es aber besser wissen, er war ja dran beteiligt.
only when you no-life you can exist forever, because what does not live cannot die
User avatar
Mr.Wolna
Moderator
Posts: 12939
Joined: Sun Oct 28, 2007 8:54 pm

Re: Ein paar Scriptfragen.

Post by Mr.Wolna »

dann hoff ich mal du kriegst es hin, und kannst uns bald eine deutsche Version von Mr.Fixit anbitten xD
RPÜ/German Restoration Project Tanslation
Ich habe ein Gewehr, eine Schaufel und 5 Hektar Land hinter dem Haus. Man wird dich nie finden - leg dich also nicht mit mir an!   <br />
Ashbury wrote:P.s. Nein es ist nicht die Gewalt was mich an der Fallout Reihe gereizt hat,aber sie war immer die Kirsche auf der Sahnetorte ( Und ich will verdammt nochmal ne Kirsche oben drauf haben)
User avatar
Lexx
Administrator
Posts: 27348
Joined: Sat Dec 10, 2005 6:27 pm

Re: Ein paar Scriptfragen.

Post by Lexx »

Thema abgehakt, funktioniert, alles gelöst, Crafting-System in SD2 definitiv vorhanden. :)

Das Problem war ziemlich dämlich. Der Font Fix von Zyankali! war zwar insofern korrekt, hatte aber einen kleinen Fehler beinhaltet: Die Font5.fon Datei war fehlerhaft. Es ist nämlich so:

Die Font0.fon Datei wird vom Mapper und von der Fallout2.exe benutzt, um die Städte auf der Weltkarte anzuzeigen.
Die Font2.fon Datei wird nur vom Mapper für fast alles benutzt.
Die Font5.fon wird von der Fallout2.exe im Interface-Modus benutzt (sehr wichtig).
Die Dateien 1, 3, 4 sind unbekannt.

Jedenfalls, dadurch, dass die Font5.fon fehlerhaft gewesen ist, wurden die Umlaute nicht angezeigt. Ich hab die Datei jetzt mit der Font0.fon ausgetauscht und bums, schon funktioniert alles perfekt.

Ohne die Hilfe von Wasteland Ghost wäre ich wohl nie drauf gekommen. :)
only when you no-life you can exist forever, because what does not live cannot die
User avatar
Mr.Wolna
Moderator
Posts: 12939
Joined: Sun Oct 28, 2007 8:54 pm

Re: Ein paar Scriptfragen.

Post by Mr.Wolna »

Schön z uWissen das das Prob gelöst ist, sag mal LExx was hat damit Zyankalis fix zu tun? Ich meine im Original Fallout sind doch auch die Umlaute drin oder , sehe ich das Falsch?

Und die Fonts, sind die gleichen oder? Also wird es keine Fehler gben wenn man einfach kopiert und unbennent, ODER??
RPÜ/German Restoration Project Tanslation
Ich habe ein Gewehr, eine Schaufel und 5 Hektar Land hinter dem Haus. Man wird dich nie finden - leg dich also nicht mit mir an!   <br />
Ashbury wrote:P.s. Nein es ist nicht die Gewalt was mich an der Fallout Reihe gereizt hat,aber sie war immer die Kirsche auf der Sahnetorte ( Und ich will verdammt nochmal ne Kirsche oben drauf haben)
User avatar
Lexx
Administrator
Posts: 27348
Joined: Sat Dec 10, 2005 6:27 pm

Re: Ein paar Scriptfragen.

Post by Lexx »

Hab ich doch oben alles geschrieben. Der Font Fix von Zyankali funktioniert zwar auf der Weltkarte, usw im Spiel, aber _nicht_ im Interface Modus. Der wird aber für MrFixit gebraucht, deswegen ist das Spiel da größtenteils abgeschmiert. Dadurch, dass ich die *.fon Datei jetzt korrigiert habe, geht alles im Interface Modus.

Ich werd die Tage eine deutsche Version von MrFixit veröffentlichen.
only when you no-life you can exist forever, because what does not live cannot die
Post Reply

Return to “Fallout Modding”