Author Topic: This code crashes blockland. Help!  (Read 2505 times)

My mod does this for special chars! When I do something like "˙", it turns into a dot instead.



I just noticed I misread that. Anyway, not sure how that is happening. Maybe it is the other way of replacing it?
I could totally use that mod. You didn't misread that.

Here: http://files.visolator.tk/Script_StringChars.zip

SpecialCharHelp(); - Tells you all the chars you can say in the chat.

It seems there is a part of it that works with RTB's stuff, but since it is down, I don't recommend using that part.

It looks awfully much like you copied this and screwed it up with packages and generally confusing renamed methods.

https://www.garagegames.com/community/forums/viewthread/62393


It looks awfully much like you copied this and screwed it up with packages and generally confusing renamed methods.

https://www.garagegames.com/community/forums/viewthread/62393
Nah. If you look earlier in the thread I believe I posted the source of the httpPage code.

I've removed the packages and it works now anyhow. Whatever.

Maybe this will help.

torque string manipulation
I know how to use strreplace. I just don't want to have to code all that conversion on my own. eugh. (advanced bot's mod doesn't work for all characters)

AHHA! I KNOW THE ANSWER.
If you look around the GG forums you will find that there is a certain limit on how many characters a variable can be. I'm not sure that its specific from pulling a var from a web server, but I saw a post just like that where a variable from a web server was too big and crashed the game. Browse around a little. I knows it!

I know how to use strreplace. I just don't want to have to code all that conversion on my own. eugh. (advanced bot's mod doesn't work for all characters)
It's the engine, some newer acsii characters will not work. If non of my chars work, that means there is something wrong with the server or you.

AHHA! I KNOW THE ANSWER.
If you look around the GG forums you will find that there is a certain limit on how many characters a variable can be. I'm not sure that its specific from pulling a var from a web server, but I saw a post just like that where a variable from a web server was too big and crashed the game. Browse around a little. I knows it!

There is no limit.

It's the engine, some newer acsii characters will not work. If non of my chars work, that means there is something wrong with the server or you.

Some "newer ASCII characters"? ASCII is a standard set in stone that does not change. Blockland supports the full set.

There is no limit
There is no limit on how much data a variable takes up on the local machine. However there is a limit in how Long a variable from a TCP object can be


http://www.garagegames.com/community/forums/viewthread/132437/1

function TCPLR::onLine(%this, %line) { 
   echo(%line);


That is the only problem there. TCPObject instances and functions can take as big values as you want. echo can only take 4096 characters.