Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Wed Feb 25, 2015 2:00 am
Thanks. Mine was simply a speed concern, but if it's memory then everything is good.
... for the explorer at heart!
https://milovana.com/forum/
Gifs are rendered by the browser control which uses ie on windows, having done a bit of research on it recently it defaults to compatibility mode in later versions of ie (I think it gets the engine to mimic ie7).VanHellsing wrote:I'm trying to make a tease using guideme and I have a question - why some gifs are much slower when they are played in GuideMe?
All of them have about 900kb-2mb, I tried downsizing them to 600kb and reducing number of colors but it didn't help. They work good when opened in browser, but GuideMe slows them down by a half or more. Other gifs with similar sizes work fine.
Updating IE from 9 to 11 solved the problem. :)philo wrote:Gifs are rendered by the browser control which uses ie on windows, having done a bit of research on it recently it defaults to compatibility mode in later versions of ie (I think it gets the engine to mimic ie7).
I need to work out how to force it to not do that.
So my guess would be it is to do with that.
Code: Select all
<?xml version="1.0" encoding="utf-8" ?> <tdata> <rare>3</rare> <heat>80</heat> <rate>3</rate></tdata> <Tease scriptVersion="v0.1"> <Title>Sample Game</Title> <Pages> <Page id="Nezhul2Edging"> <Text> </Text> <Button target="EncasedTest">New random Image</Button> <Button target="startreally">New random Image</Button> <javascript> <![CDATA[ function pageLoad() { fSelectImage(); } ]]> </javascript> </Page> </Pages></Tease>Probably a non printable character somewhere, possibly a file encoding issue.Nezhul wrote:Update: I don't know what went wrong, killed 2 hours trying to figure it out, ended up creating step-by-step a new file that LOOKS EXACTLY THE SAME but works. I guess I'll just link this video: http://www.youtube.com/watch?v=TqqB8NjcKJU
Code: Select all
<Settings> <AutoSetPageWhenSeen>true</AutoSetPageWhenSeen> <ForceStartPage>true</ForceStartPage> </Settings> Code: Select all
// vStartTime was saved at the start of the session via Date.getTime() var dateobj = new Date();var curTime = dateobj.getTime(); //returns number of milliseconds since 01.01.1970var startTime = parseInt(scriptVars.get("vStartTime"));var minutesPast = (curTime - startTime)/60000; //I assume there's 60 seconds in a minute and // 1000 milliseconds in a second About this thing again, it's really really weird. I use Notepad++ to edit my files. Now if I create a brand new XML file, open it and edit it, then upon hitting "Enter" the invisible signs at the end of the line are [CR][LF].Nezhul wrote:I have an XML like that:
THis XML I want to include in a tease to get access to the pages in it, but also I need to store some data associated with it which I did in <tdata> block.Code: Select all
<?xml version="1.0" encoding="utf-8" ?> <tdata> <rare>3</rare> <heat>80</heat> <rate>3</rate></tdata> <Tease scriptVersion="v0.1"> <Title>Sample Game</Title> <Pages> <Page id="Nezhul2Edging"> <Text> </Text> <Button target="EncasedTest">New random Image</Button> <Button target="startreally">New random Image</Button> <javascript> <![CDATA[ function pageLoad() { fSelectImage(); } ]]> </javascript> </Page> </Pages></Tease>
Now, how can I get the data from there? Or maybe I'm doing something essentially wrong?
Update: I don't know what went wrong, killed 2 hours trying to figure it out, ended up creating step-by-step a new file that LOOKS EXACTLY THE SAME but works. I guess I'll just link this video: http://www.youtube.com/watch?v=TqqB8NjcKJU
Code: Select all
TempXML.name = fnames[i].substring(0,fnames[i].lastIndexOf(".xml")); TempXML.age = 0;TempXML.minmood = xmlobj.tdata.minmood[0];TempXML.maxmood = xmlobj.tdata.maxmood[0];realXMLs.push(TempXML); Code: Select all
TempXML.name = fnames[i].substring(0,fnames[i].lastIndexOf(".xml")); TempXML.age = 0;TempXML.minmood = parseInt(xmlobj.tdata.minmood[0]);TempXML.maxmood = parseInt(xmlobj.tdata.maxmood[0]);realXMLs.push(TempXML); Not sure what you mean.Nezhul wrote:also what type of comment signs are good for your CDATA block?
Code: Select all
var dateobj1 = new Date(); jscriptLog(dateobj1); var dateobj2 = new Date(); jscriptLog(dateobj2); dateobj2 = new Date(dateobj2.getTime() + 129600000); jscriptLog(dateobj2); var intDiffd = comonFunctions.dateDifference("d", dateobj1, dateobj2); jscriptLog(intDiffd); var intDiffh = comonFunctions.dateDifference("h", dateobj1, dateobj2); jscriptLog(intDiffh); var intDiffm = comonFunctions.dateDifference("m", dateobj1, dateobj2); jscriptLog(intDiffm); var intDiffs = comonFunctions.dateDifference("s", dateobj1, dateobj2); jscriptLog(intDiffs); The description didn't really make sense, without seeing the full code on what you are doing I don't think I can help.Nezhul wrote:Another "sorta" bug.
Code: Select all
var x = ["a","b","c"]var y = x.splice(0,1) //y == ["b","c","c"] , y.length == 3It worked fine for meNezhul wrote:I have a slight problem that doesn't ruin my life but makes me find solutions in a very deep butthole....
the problem is, splice() and shift() for array don't change it's length. In other wordsThat I cannot understand.Code: Select all
var x = ["a","b","c"]var y = x.splice(0,1) //y == ["b","c","c"] , y.length == 3
Code: Select all
//setup arrayvar x = ["a","b","c"];jscriptLog("x: " + x);jscriptLog("x.length: " + x.length);// grab the "a" from the array and put in yvar y = x.shift();jscriptLog("x: " + x);jscriptLog("x.length: " + x.length);jscriptLog("y: " + y);//grab the "c" from the array and put it in zvar z = x.splice(1,1);jscriptLog("x: " + x);jscriptLog("x.length: " + x.length);jscriptLog("z: " + z);// add 2 new values to the arrayx.splice(1,0,"d","e");jscriptLog("x: " + x);jscriptLog("x.length: " + x.length); Code: Select all
2015-02-27 21:02:59,597 INFO Jscript - x: a,b,c2015-02-27 21:02:59,597 INFO Jscript - x.length: 32015-02-27 21:02:59,598 INFO Jscript - x: b,c2015-02-27 21:02:59,598 INFO Jscript - x.length: 22015-02-27 21:02:59,598 INFO Jscript - y: a2015-02-27 21:02:59,598 INFO Jscript - x: b2015-02-27 21:02:59,598 INFO Jscript - x.length: 12015-02-27 21:02:59,598 INFO Jscript - z: c2015-02-27 21:02:59,599 INFO Jscript - x: b,d,e2015-02-27 21:02:59,599 INFO Jscript - x.length: 3