Tic-80: The hard limit for the character count is not accurate when editing code in an external file

Created on 2 Sep 2018  路  5Comments  路  Source: nesbox/TIC-80

So all I have in the code editor is this: dofile("tests.moon") and I'm editing tests.moon in SublimeText.

When editing code in an external file, the hard limit for the character count is not accurate. The limit is supposed to be 65536 characters, but if I make tests.moon more than exactly 63283 characters, (2253 characters under the limit), TIC complains and asserts that the code is larger than 65536.

But if I copy and paste the contents of tests.moon into the TIC code editor, it works just fine.

code enhancement

Most helpful comment

yes, will do

All 5 comments

this is can be because of use \r\n in your tests.moon instead \n

This is definitely the case.

Maybe a future version of TIC-80 can automatically detect \r\n line endings and trim them down to \n before loading in an external file?

yes, will do

Removed dofile() because a lot of misunderstanding how to use it, how to export cart with it.
Also, we always have text carts support.
Done here d7c7364.

Therefore, text cart format now enabled by default in the non-pro version, done here cd91711.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BuoYancYdabl picture BuoYancYdabl  路  5Comments

nesbox picture nesbox  路  5Comments

Spreit picture Spreit  路  4Comments

fangzhangmnm picture fangzhangmnm  路  3Comments

codeartisticninja picture codeartisticninja  路  4Comments