sfall script editor

One thing thats bugging me: If I right click on a page-tab, I don't get options to close this tab, etc. I have to go to File -> Close.
 
Lexx said:
One thing thats bugging me: If I right click on a page-tab, I don't get options to close this tab, etc. I have to go to File -> Close.

Timeslip said:
You can middle click a tab to close it. (Works with the search results in the bottom panel too.)
 
Aw man, that's totally not common. :P

/Edit: But something else. I am using german Fallout 2 version and if I open a script, I can't get the correct msg file shown. Anything I've overlooked? From where does it open the msg file anyway? Maybe some extra path in settings would be good for it.
 
Lexx said:
Aw man, that's totally not common. :P
Works in visual studio and firefox, the two tabbed applications I keep open 99% of the time I have my computer on. I'm so used to it I didn't even think about doing anything else. :P

I'll see if I can use parts of the file menu for it.

Lexx said:
/Edit: But something else. I am using german Fallout 2 version and if I open a script, I can't get the correct msg file shown. Anything I've overlooked? From where does it open the msg file anyway? Maybe some extra path in settings would be good for it.
No, it's hardcoded for english atm. I need to add a new option to change it.
 
A new version of the script editor is up as part of the 2.12 modders pack. It has the replace function for nirran, an option to change the language to use for the msg files, and a right click menu for tabs which does nothing except close them, for people without a middle mouse button.

It also has a new tools menu for me to put random little things that don't warrant their own program. At the moment there's just the utility for modifying head frms to tell sfall to look for a 32 bit version.
 
Timeslip said:
and a right click menu for tabs which does nothing except close them, for people without a middle mouse button.
Middle mouse button can be emulated by pressing right and left buttons simultaneously :P
 
I hope this isn't a terribly stupid question, but when compiling mapper scripts with the editor I often get errors of the following type:

Code:
More than necessary 1 argument(s) in macro call "inc_global_var(GVAR_TOWN_REP_NEW_RENO, (5))"

Always with town reputations, always with the "more than necessary 1 argument(s)" error. I updated the mapper scripts and all that.

EDIT: Well, should someone have the same problem I had, the solution seems to be to change every

Code:
inc_global_var(GVAR_TOWN_REP_NEW_RENO, x)

with

Code:
set_global_var(GVAR_TOWN_REP_NEW_RENO, global_var(GVAR_TOWN_REP_NEW_RENO) + x)
 
I need to update to the 3.0 version of the Script Editor because I want to be able to use the set_critter_skill function, but I get a "The system cannot find the file specified" error when compiling.

Does anyone know what's wrong? The full bug report is here:

[spoiler:df0258c75d]

************** Exception Text **************
System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at ScriptEditor.Compiler.Compile(String infile, String& output, List`1 errors, Boolean preprocessOnly)
at ScriptEditor.TextEditor.Compile(TabInfo tab, String& msg, Boolean showMessages, Boolean preprocess)
at ScriptEditor.TextEditor.compileToolStripMenuItem1_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ScriptEditor
Assembly Version: 2.10.0.0
Win32 Version: 2.10.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/GOG.com/Fallout%202%20Mapper/modderspack%203.0/Script%20editor/ScriptEditor.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ICSharpCode.TextEditor
Assembly Version: 3.2.0.5777
Win32 Version: 3.2.0.5777
CodeBase: file:///C:/Program%20Files%20(x86)/GOG.com/Fallout%202%20Mapper/modderspack%203.0/Script%20editor/ICSharpCode.TextEditor.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------



[/spoiler:df0258c75d]
 
JimTheDinosaur said:
I hope this isn't a terribly stupid question, but when compiling mapper scripts with the editor I often get errors of the following type:

Code:
More than necessary 1 argument(s) in macro call "inc_global_var(GVAR_TOWN_REP_NEW_RENO, (5))"

Always with town reputations, always with the "more than necessary 1 argument(s)" error. I updated the mapper scripts and all that.

EDIT: Well, should someone have the same problem I had, the solution seems to be to change...

Or you can just use the correct macro:
Code:
inc_global_var_amt(gvar_id,value)

The command:
Code:
inc_global_var()
increases the specified variable by one.
 
Two things here. First could you put a font size selector in, I'm getting kinda old and the 6 point in the message window is very hard to read.

Second, when I try to compile any script, even ones from the Mapper script base, I get an error "The system cannot find the file specified." This happens with v3.1 and 3.0.
System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at ScriptEditor.Compiler.Compile(String infile, String& output, List`1 errors, Boolean preprocessOnly)
at ScriptEditor.TextEditor.Compile(TabInfo tab, String& msg, Boolean showMessages, Boolean preprocess)
at ScriptEditor.TextEditor.compileToolStripMenuItem1_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripMenuItem.ProcessCmdKey(Message& m, Keys keyData)
at System.Windows.Forms.ToolStripManager.ProcessShortcut(Message& m, Keys shortcut)
at System.Windows.Forms.ToolStripManager.ProcessCmdKey(Message& m, Keys keyData)
at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Form.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4971 (win7RTMGDR.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ScriptEditor
Assembly Version: 2.10.0.0
Win32 Version: 2.10.0.0
CodeBase: file:///C:/Fallout/Script%20editor/ScriptEditor.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4977 (win7RTMGDR.050727-4900)
CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4971 (win7RTMGDR.050727-4900)
CodeBase: file:///C:/windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4980 (win7RTMGDR.050727-4900)
CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ICSharpCode.TextEditor
Assembly Version: 3.2.0.5777
Win32 Version: 3.2.0.5777
CodeBase: file:///C:/Fallout/Script%20editor/ICSharpCode.TextEditor.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
This doesn't happen with V2.17, I get other mysterious frustrating errors.
Can someone tell me what file is missing and where to find it?
I have installed 3.1 3 times hoping the extract was wrong.
I've just started scripting and have spent several days trying to get scripts to compile on every editor I can find.
 
I'm working with .ssl files and for compiling to .int i'm using FSE with "compile.exe" and "dos4gw.exe" from " sfall modderspack2.9.7". This works for me because i don't need any new functions above version 2.9.7. I've tried script editor from sfall modderspack 2.17.7 and works better than FSE because it tells exactly if there's an error during script check. I don't know if you're in some kind of advanced modding/scripting but this is as far as i go. Btw, i'm using win7. I know i'm not offering any quick solution here, just trying to be helpful, since there was no other answer. :mrgreen:
 
VonZorch said:
Can someone tell me what file is missing and where to find it?
I have installed 3.1 3 times hoping the extract was wrong.
I've just started scripting and have spent several days trying to get scripts to compile on every editor I can find.
No file is missing, somehow or other a debug build of the editor ended up in the modders pack, and the debug version has a bunch of hardcoded paths in it. Will fix for the next release, but in the meantime you can use the 3.1 modders pack and copy the ScriptEditor.exe from a version that works for you to get the new 3.0/3.1 script functions.

JimTheDinosaur said:
I hope this isn't a terribly stupid question, but when compiling mapper scripts with the editor I often get errors of the following type:

Code:
More than necessary 1 argument(s) in macro call "inc_global_var(GVAR_TOWN_REP_NEW_RENO, (5))"

Always with town reputations, always with the "more than necessary 1 argument(s)" error. I updated the mapper scripts and all that.
I know you solved that one already, but for future reference it happens because command.h defines 2 macros:

#define inc_global_var_amt(x,y) set_global_var(x,global_var(x)+y)
#define inc_global_var(x) inc_global_var_amt(x,1)

note that inc_global_var doesn't take a second parameter, and instead increases the var by 1. All of the scripts with that error are bugged, should should be using inc_global_Var_amt instead, and if x is anything other than 1 are currently behaving incorrectly. They don't compile in the sfall script editor because the preprocessor it uses is stricter than the watcom one, and treats an incorrect number of args to a macro as an error. In watcom there may be a warning, but the script will still compile.
 
I now have Windows 8 (not by choice of course: pc broke down and new one came with it preinstalled), and the Script editor doesn't like that fact. Whenever I open a script, it crashes. Infuriatingly, the first time it crashed it gave an error message, but because I didn't write it down, I have no idea what it was (now it just gives a program stopped working message by windows every time).

This is probably way too vague to be of any help, but just maybe somebody knows what's wrong.
 
JimTheDinosaur said:
I now have Windows 8 (not by choice of course: pc broke down and new one came with it preinstalled), and the Script editor doesn't like that fact. Whenever I open a script, it crashes. Infuriatingly, the first time it crashed it gave an error message, but because I didn't write it down, I have no idea what it was (now it just gives a program stopped working message by windows every time).

This is probably way too vague to be of any help, but just maybe somebody knows what's wrong.

I can try it tonight, I have Win 8 too and I never used a script editor.
If it crashes, I'll write down the error :)
 
Timeslip, I think there's a bug with the explosion function, with it expecting 1 argument instead of 3.

At least, when I try to compile explosion(tile_num(dude_obj), elevation(dude_obj), 1);, it gives the error "more than one expected argument(s) in macro call.
 
JimTheDinosaur said:
At least, when I try to compile explosion(tile_num(dude_obj), elevation(dude_obj), 1);, it gives the error "more than one expected argument(s) in macro call.
explosion is not a macro in any of the standard headers. It's a function, and I just checked the compiler, and yes it expects 3 arguments. Have you defined it yourself anywhere? (Or tile_num, or elevation?) Have you double checked that's the line the compiler is complaining about?
 
Timeslip said:
JimTheDinosaur said:
At least, when I try to compile explosion(tile_num(dude_obj), elevation(dude_obj), 1);, it gives the error "more than one expected argument(s) in macro call.
explosion is not a macro in any of the standard headers. It's a function, and I just checked the compiler, and yes it expects 3 arguments. Have you defined it yourself anywhere? (Or tile_num, or elevation?) Have you double checked that's the line the compiler is complaining about?

You're completely right, I overrode explosion in my define header, being an idiot. Really sorry for bothering you.
 
Back
Top