BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 eXtreme Movie Manager 8, 9, 10 Forum
 Bug Reports
 Magicscript looks busted
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Sciolto
New Member

65 Posts

Posted - 23 Nov 2014 :  19:53:01  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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.

JDommi
Administrator

Germany
4638 Posts

Posted - 23 Nov 2014 :  20:39:23  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

Sciolto
New Member

65 Posts

Posted - 23 Nov 2014 :  21:12:06  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

JDommi
Administrator

Germany
4638 Posts

Posted - 23 Nov 2014 :  22:29:52  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.16 sec. Powered By: Snitz Forums 2000 Version 3.4.07