Register    Login    Forum    FAQ    PinSimDB.org

Board index » Resources » FP Addons




Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Physics Workshop
 Post Posted: Sat Sep 28, 2013 5:46 am 
Offline

Joined: Mon Mar 25, 2013 4:02 pm
Posts: 930
blue wrote:
Interesting

Couldn't you just parse the xml with VBScript so the table can just read the values without having to go through all this BAM/multiple physics stuff which is massively confusing to most people? Have it as a script library that people can just add themselves if they want to.

Not good with xml stuff at all, but looks possible, and should be easy for someone with coding experience, found a example with just a simple search. This example may not be suitable, but does show you can read xml into vbs.



There is no way to extend anyway sripts in FP. VBScripts in FP can't have create COM objects.
Code:
set xmlDoc = CreateObject("MSXML2.DOMDocument")

This will alway create error.
In FP script also don't have access to physics config values.

I spend last 2 weeks trying to find any way to extend FP scripts.

_________________
http://www.ravarcade.pl
Better Arcade Mode
current BAM version: v1.4-240, released: Aug 16, 2018


Top 
 Profile  
 
 Post subject: Re: Physics Workshop
 Post Posted: Sat Sep 28, 2013 9:43 am 
Offline

Joined: Sun Jul 28, 2013 2:23 am
Posts: 103
Location: QLD, Australia
ravarcade wrote:
In FP script also don't have access to physics config values.

I spend last 2 weeks trying to find any way to extend FP scripts.


Thanks ravarcade for trying and for answer.

_________________
Tables completed - Battle Of Britain, Klondike, Yukon, Yukon Special, Gold Rush, Jackpot, Lucky 7, Powerplay2.0


Top 
 Profile  
 
 Post subject: Re: Physics Workshop
 Post Posted: Thu Oct 03, 2013 2:39 am 
Offline

Joined: Tue May 01, 2012 11:13 pm
Posts: 330
Location: Abbotsford
Well, not surprised to hear that. He was such a control freak after all. What a shame this program would be 10 times better if he just understood that we all we wanted was to make the program better, and that we weren't actually criticizing him.
Thanks for your answer as well, I guess we have to just put up with it and continue to find work arounds.

_________________
_____________________________________

Latest projects and rants at My Facebook Page
_____________________________________

Latest Project: FPx Template Engine


Top 
 Profile  
 
 Post subject: Re: Physics Workshop
 Post Posted: Tue Oct 08, 2013 3:34 pm 
Offline

Joined: Tue Aug 20, 2013 9:41 am
Posts: 121
Yep I found that out in my table. I was trying to run CreateObject("Scripting.FileSystemObject") to check for the existence of the LedWiz support files so I could dynamically provide support and found that creating objects from an FP script is not allowed. So we'll just have to fix that when we reverse engineer and/or replace FP.


Top 
 Profile  
 
 Post subject: Re: Physics Workshop
 Post Posted: Tue Oct 08, 2013 5:30 pm 
Offline

Joined: Mon Mar 25, 2013 4:02 pm
Posts: 930
Gilrock wrote:
Yep I found that out in my table. I was trying to run CreateObject("Scripting.FileSystemObject") to check for the existence of the LedWiz support files so I could dynamically provide support and found that creating objects from an FP script is not allowed. So we'll just have to fix that when we reverse engineer and/or replace FP.

1. I work now on my own vbscript host. I will try to solve problems like this with scripts. But it is not for FP.

2. I spend some thime now with VBscript so if You try to:
Load LedWiz script and when it fails it will "crash total" script You can do this:

Code:
DIM LedWizExist
Set LedWizExist = 1
On Error Resume Next
ExecuteGlobal LoadExternalScript("LedWIZ_Class.vbs")
If Err Then
  Set LedWizExist = 0
End If

On Error GoTo 0

This way You will load ledWiz script, if it fails You will set "LedWizExist" = 0 and =1 if exist
Line:
"On Error Resume Next"
Disable normal error handling. If LoadExternalScript fail, it will not crash FP.

"If Err ... " will allow You to check if load fail

"On Error GoTo 0" - tourns on normal error handling

more details:
http://stackoverflow.com/questions/2202 ... atement-do

_________________
http://www.ravarcade.pl
Better Arcade Mode
current BAM version: v1.4-240, released: Aug 16, 2018


Top 
 Profile  
 
 Post subject: Re: Physics Workshop
 Post Posted: Tue Oct 08, 2013 10:50 pm 
Offline

Joined: Tue Aug 20, 2013 9:41 am
Posts: 121
Thanks Rav I'll give that a try. That's the kind of scripting I think would be helpful to keep us from having to release so many versions of tables.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2

Board index » Resources » FP Addons


Who is online

Users browsing this forum: No registered users and 2 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to: