I'm having a problem with the Hex Sprite Editor.
Whenever I try to save something as an XLibC picture, I get this error:
http://pastebin.com/PhPZ9Bmg
Just a reminder to everyone to vote for TokenIDE (if you feel it deserves the recognition) in this year's PC category for ticalc.org's Program of the Year awards. Best of luck!
Voting for TokenIDE (or PC stuff in general) should be news enough for a topic change in IRC IMO.
AHelper wrote:
Voting for TokenIDE (or PC stuff in general) should be news enough for a topic change in IRC IMO.
Duly noted and implemented. Thanks for the suggestion.
Hexatron wrote:
I'm having a problem with the Hex Sprite Editor.
Whenever I try to save something as an XLibC picture, I get this error:
http://pastebin.com/PhPZ9Bmg
Ah yes, I ran into this before, fixed it, and then didn't release it. Here's the fix download:
http://merthsoft.com/Tokens.zip

My guess is that you were trying to save it as dimensions that xLib doesn't accept. I had previous hard-coded the sizes. I've since removed the hardcoding, but added a warning in case you're trying to save in the wrong size or with the wrong palette.
merthsoft wrote:
Hexatron wrote:
I'm having a problem with the Hex Sprite Editor.
Whenever I try to save something as an XLibC picture, I get this error:
http://pastebin.com/PhPZ9Bmg
Ah yes, I ran into this before, fixed it, and then didn't release it. Here's the fix download:
http://merthsoft.com/Tokens.zip

My guess is that you were trying to save it as dimensions that xLib doesn't accept. I had previous hard-coded the sizes. I've since removed the hardcoding, but added a warning in case you're trying to save in the wrong size or with the wrong palette.


Thanks, it's working great, but with the XLibC tile obtion (XlibC Picture works just fine), if I try to save it with 128x64 dimensions (what the warning says) it still gives me that warning, and on transfer to calc I could not see anything (all of the sprites except one were just junk)
Hmm, I'm not sure why it was giving you the junk, but it seems to work fine for me. As for the popup when it was the right size, I've fixed that:
http://www.cemetech.net/scripts/countdown.php?/comp/Tokens.zip&location=archive
When I created a project and added a program to the RAM and then tried to change the token file via the File menu, I got this error:

Parameter is not valid.


Code:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: Parameter is not valid.
   at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
   at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)
   at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, Single x, Single y, StringFormat format)
   at FastColoredTextBoxNS.TextStyle.Draw(Graphics gr, Point position, Range range)
   at Merthsoft.Tokens.TokenStyle.Draw(Graphics gr, Point position, Range range)
   at FastColoredTextBoxNS.FastColoredTextBox.FlushRendering(Graphics gr, StyleIndex styleIndex, Point pos, Range range)
   at FastColoredTextBoxNS.FastColoredTextBox.DrawLineChars(PaintEventArgs e, Int32 firstChar, Int32 lastChar, Int32 iLine, Int32 iWordWrapLine, Int32 x, Int32 y)
   at FastColoredTextBoxNS.FastColoredTextBox.OnPaint(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at FastColoredTextBoxNS.FastColoredTextBox.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
TokenIDE
    Assembly Version: 0.11.0.0
    Win32 Version: 0.11.0.0
    CodeBase: file:///C:/Users/user/Stuff/TokenIDE/TokenIDE.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Microsoft.CSharp
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Dynamic
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
    Assembly Version: 0.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


**ADDED**

As a side note, when I double-click the program, RAM, or Archive submenus on the file explorer (while a projected is opened), I get this error thrown:

Object reference not set to an instance of an object


Code:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Merthsoft.TokenIDE.Tokens.GetProject(TreeNode node)
   at Merthsoft.TokenIDE.Tokens.projectTree_DoubleClick(Object sender, EventArgs e)
   at System.Windows.Forms.TreeView.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
TokenIDE
    Assembly Version: 0.11.0.0
    Win32 Version: 0.11.0.0
    CodeBase: file:///C:/Users/user/Stuff/TokenIDE/TokenIDE.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Microsoft.CSharp
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Dynamic
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
    Assembly Version: 0.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Running Windows 7 64 bit
Projects are not currently working. I thought I had disabled them in the release build, but I guess I didn't.
For SourceCoder 3, I had identified 211 token bigrams that introduce ambiguities, listed at the end of this post.
1) Many involve implicit multiplication, such as Tmax vs. ^^Tmax(, where the former is a Window variable, and the latter is the transposition function multiplied by the max() function (for example, in [A]^^Tmax(Q,R)).
2) Many involve the |> and <| solid arrowhead characters. One among this set of ambiguities prompted me to make this examination in the first place, namely <|LMINE. Intended to be "less than custom list MINE", it gets interpreted as "left arrowhead followed by five-character sequence LMINE".
3) The final ~30 ambiguities in the list are made obvious by SourceCoder 3's syntax highlighting, for example Xmax in ∆Xmax(. SourceCoder 3 will color the ∆X as one color and the max( as another.
4) Most if not all of these ambiguities, with the exception specifically of <|, involve sequences not seen outside of hyper-optimized TI-BASIC.

Recommendation: Make <| and |> into different symbols. |<| and ||>? lblockarr and rblockarr? Something else?


Code:
rref( in ^^rref(
Tmax in ^^Tmax(
Tmin in ^^Tmin(
Tmax in Tmax(
Tmin in Tmin(
Un/d in Un/d
Un⁄d in Un⁄d
Xmax in Xmax(
Xmin in Xmin(
Ymax in Ymax(
Ymin in Ymin(
ZBox in ZBoxplot
ZXscl in ZXscl
ZYscl in ZYscl
ZXmin in ZXmin
ZXmax in ZXmax
ZYmin in ZYmin
ZYmax in ZYmax
ZTmin in ZTmin
ZTmax in ZTmax
ẋ2 in ẋ2
ẋ2 in ẋ2-SampZTest(
ẋ1 in ẋ1-PropZTest(
ẋ2 in ẋ2-PropZTest(
ẋ2 in ẋ2-SampZInt(
ẋ1 in ẋ1-PropZInt(
ẋ2 in ẋ2-PropZInt(
ẋ2 in ẋ2-SampTTest
ẋ2 in ẋ2-SampFTest
ẋ2 in ẋ2-SampTInt
xyLine in ΣxyLine(
<| in <|E
<| in <|u
<| in <|v
<| in <|w
<| in <|N
<| in <|P/Y
<| in <|C/Y
<= in <=
<| in <|-
<| in <|'
<| in <|`
<| in <|:
<| in <|?
<| in <|!
<| in <|π
<| in <|F
<| in <|~
<| in <|
<| in <|<
<| in <|>
<| in <|L
>Polar in >Polar
>Polar in >PolarGC
>Rect in >RectGC
*row+( in *row+(
-> in |->DMS
-> in |->Dec
-> in |->Frac
-> in |->
!= in |!=
|> in |>DMS
|> in |>Dec
|> in |>Frac
|< in |<|
<| in |<|E
<| in |<|u
<| in |<|v
<| in |<|w
<| in |<|N
<| in |<|P/Y
<| in |<|C/Y
<= in |<=
<| in |<|-
<| in |<|'
<| in |<|`
<| in |<|:
<| in |<|?
<| in |<|!
<| in |<|π
<| in |<|F
<| in |<|~
<| in |<|
<| in |<|>
<| in |<|L
|> in <|>DMS
|> in <|>Dec
|> in <|>Frac
|- in <|->
|! in <|!
|: in <|:
|E in <|E
|F in <|F
|L in <|L
|N in <|N
|L in <|L1
|L in <|L₁
|L in <|L2
|L in <|L₂
|L in <|L3
|L in <|L₃
|L in <|L4
|L in <|L₄
|L in <|L5
|L in <|L₅
|L in <|L6
|L in <|L₆
|u in <|u(nMin)
|v in <|v(nMin)
|F in <|FV
|w in <|w(nMin)
|N in <|Normal
|E in <|Eng
|F in <|Float
|< in <|<
|> in <|>
|< in <|<=
|> in <|>=
|! in <|!=
|- in <|-
|F in <|Fix
|F in <|Full
|F in <|Func
|L in <|LabelOn
|L in <|LabelOff
|u in <|uvAxes
|v in <|vwAxes
|u in <|uwAxes
|F in <|FnOn
|F in <|FnOff
|L in <|Line(
|π in <|π
|' in <|'
|? in <|?
|~ in <|~
|> in <|>Nom(
|> in <|>Eff(
|v in <|variance(
|F in <|Fcdf(
|F in <|Fpdf(
|> in <|>Rect
|> in <|>Polar
|L in <|Logistic
|L in <|LinRegTTest
|L in <|List>matr(
|L in <|List►matr(
|E in <|ExprOn
|E in <|ExprOff
|E in <|Equ>String(
|E in <|Equ►String(
|N in <|NormProbPlot
|u in <|u
|v in <|v
|w in <|w
|` in <|`
|u in <|uparrow
|E in <|Else
|F in <|For(
|E in <|End
|L in <|Lbl
|F in <|Fill(
|E in <|ExecLib
|L in <|LinRegTInt
|> in <|>n/d<>Un/d
|> in <|>n⁄d<>Un⁄d
|> in <|>F<>D
|N in <|Navy
|N in <|NAVY
|L in <|LtBlue
|L in <|LTBLUE
|L in <|LtGray
|L in <|LtGrey
|L in <|LTGRAY
|L in <|LTGREY
|L in <|LinReg(a+bx)
|E in <|ExpReg
|L in <|LnReg
|L in <|LinReg(ax+b)
>Polar in |>Polar
>Polar in |>PolarGC
>Rect in |>RectGC
►Polar in ►Polar
►Polar in ►PolarGC
>= in |>=

L2 in L2-SampZTest(
L1 in L1-PropZTest(
L2 in L2-PropZTest(
L2 in L2-SampZInt(
L1 in L1-PropZInt(
L2 in L2-PropZInt(
L2 in L2-SampTTest
L2 in L2-SampFTest
L2 in L2-SampTInt
L1 in L10^(
L1 in L1-Var Stats
L2 in L2-Var Stats
min( in Xmin(
Xmax in DeltaXmax(
Xmin in DeltaXmin(
Xmax in ∆Xmax(
Xmin in ∆Xmin(
Ymax in DeltaYmax(
Ymin in DeltaYmin(
Ymax in ∆Ymax(
Ymin in ∆Ymin(
DeltaX in DeltaXmin(
DeltaX in DeltaXmax(
DeltaY in DeltaYmin(
DeltaY in DeltaYmax(


Edit: For the curious, the following PHP code is the heart of the analyzer for this determination. I manually culled an additional 1187 ambiguities that could never appear in well-formed TI-BASIC.

Code:
    public function collisions() {
        if ($this->loaded !== TRUE) {
            return Array("","Tokenizer not initialized", 1);
        }

        foreach($this->tokens_r as $k1 => $v1) {
            foreach($this->tokens_r as $k2 => $v2) {
                foreach($this->tokens_r as $k3 => $v3) {
                    if ($k1 != $k2 && (FALSE === @strpos($k1, $k3)) && (FALSE === @strpos($k2, $k3)) &&
                        strlen($k3) > 1 && FALSE !== @strpos($k1.$k2,$k3)) {
                        echo "$k3 in $k1$k2\n";
                    }
                }
            }
        }
    }
I haven't looked through all of these yet, but I think with how TokenIDE does stuff, some of these aren't a problem. As for |> and <|, I suggest we use [<|] and [|>]
merthsoft wrote:
I haven't looked through all of these yet, but I think with how TokenIDE does stuff, some of these aren't a problem. As for |> and <|, I suggest we use [<|] and [|>]
Excellent. I switched them from |> and &lt; respectively to [|>] and [&lt;|] in my Tokens, AxeTokens, and 84+CSE XML files. Thanks for the feedback, Shaun. I think that resolves all my ambiguity concerns.

Edit: I ran the same program on AxeTokens, and I didn't find any terrible ambiguities. Based on Xeda's feedback, that {r1} has a special meaning in Axe (and therefore {{r1}} would be needed with the current AxeToken definitions), is there a reason not to use [r1] etc instead? Axe people, do [ ] around variables have meaning in Axe?

Edit #2: Shmibs confirmed that while /\[[A-F0-9]+\]/ has meaning as embedded data in Axe, the four classes of variables, namely {r1}, {Y1}, {X1T}, and {Y1T} all do not become anything ambiguous with the {}s replaced with []s. Therefore, SourceCoder 3's version of Merth's token files will now use [] on all four classes of data type.
As it says in the subject, I have been working with a couple sprites I made in Tokens IDE, and I saved them as a xlib tile file (.8xv) but when I transfer them to my calculator (ti 84cse) it says that it is an incompatible type... What should I do?

Edit: I am using Ti-Connect
The xlib tile file is for the xlib that's on the TI-84+ Color Silver Edition. If you're using a black and white calc, xlib just uses images (which you can edit in the image editor).
IK, I said i was using the ti 84 cse, but the xlib tile file won't transfer to my calc...
Oh, sorry, I apparently don't know how to read, and missed the "c". I'll look into it when I get home, but I've never run into these issues.
Thanks!
So.. Have you figured out the problem?₀
It's only been a couple days, and the man has a busy life. Wink Give him a few more days before we start prodding him Smile
I can't reproduce the problem, can you put the file somewhere I can access it so I can see what's going on?
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
» Goto page Previous  1, 2, 3 ... , 10, 11, 12  Next
» View previous topic :: View next topic  
Page 11 of 12
» All times are UTC - 5 Hours
 
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 vote in polls in this forum

 

Advertisement