BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 eXtreme Movie Manager 8, 9, 10 Forum
 Bug Reports
 Magicscript looks busted

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Sciolto Posted - 23 Nov 2014 : 19:53:01
I discovered that not all script issues can be fixed in the scripts themselves. At some point you will run into the fact that Magiscipt relies on reading html lines one by one and processing a single line that heavily relies on the removal of tags. This removal however does not work when tags are multi line, like in the following example:

<h2>Filmography</h2>
<div id="jumpto">
Jump to:
<a href="#writer"
onclick="handleFilmoJumpto(this);" data-category="writer">Writer</a></a>
<span class="ghost">|</span> <a href="#actor"
onclick="handleFilmoJumpto(this);" data-category="actor">Actor</a></a>
<span class="ghost">|</span> <a href="#director"
onclick="handleFilmoJumpto(this);" data-category="director">Director</a></a>
<span class="ghost">|</span> <a href="#producer"
onclick="handleFilmoJumpto(this);" data-category="producer">Producer</a></a>
<span class="ghost">|</span> <a href="#soundtrack"
onclick="handleFilmoJumpto(this);" data-category="soundtrack">Soundtrack</a></a>
<span class="ghost">|</span> <a href="#miscellaneous"
onclick="handleFilmoJumpto(this);" data-category="miscellaneous">Miscellaneous Crew</a></a>
<span class="ghost">|</span> <a href="#self"
onclick="handleFilmoJumpto(this);" data-category="self">Self</a></a>
</div>

The tag removal functionality of Magicscript cannot handle this multi line setup. If you debug the IMDB.COM (Actors) script at the point where it tries to determine the 'profession' you will see what I mean.
3   L A T E S T    R E P L I E S    (Newest First)
JDommi Posted - 23 Nov 2014 : 22:29:52
It's no XML parsing but an own kind of basic dialect.
As I don't know Ale's code I can't say if it really is as difficult to add more/better commands.
Sciolto Posted - 23 Nov 2014 : 21:12:06
quote:
Originally posted by JDommi

You have to use a combination of FINDLINE, FIND and READNEXTLINE. It's really a little bit killing but not impossible.

There are 2 big things that are missing in MagicScript:
1. proceeding with string variables such as afterfirst, between or pos
2. userdefined subroutines that can be called as subs

Maybe Ale gives us these possibilities as christmas gift... this century



The script is using FINDLINE, FIND and READNEXTLINE as a construct and still it does not work because the tags are not removed correctly. Basically the whole concept of READNEXTLINE looks dated to me. What kind of xml parsing is this ? When I need to read all lines until the closing tag and concatenate the result in order to do some cleanup that sounds like 'killing' yes.
JDommi Posted - 23 Nov 2014 : 20:39:23
You have to use a combination of FINDLINE, FIND and READNEXTLINE. It's really a little bit killing but not impossible.

There are 2 big things that are missing in MagicScript:
1. proceeding with string variables such as afterfirst, between or pos
2. userdefined subroutines that can be called as subs

Maybe Ale gives us these possibilities as christmas gift... this century

BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.07 sec. Powered By: Snitz Forums 2000 Version 3.4.07