[Error] "Main Function Has More Than 200 Variables" is a gg

5 replies [Last post]
UltiMaxKom
UltiMaxKom's picture
User offline. Last seen 4 years 44 weeks ago. Offline
Joined: 2016-06-26
Posts: 381

Hi D; ...

Today [is it today dude ???]
I Test my little TTS v2.7 in a Cafe
Then i got terrible things when i add several Variables [17 Variable at once]
Then Beep... ... ...

I got that freaking little limitation massage
This :

Hedgewars D; allegedly wrote:

LUA ERROR : ... main function has more than 200 variables .

WTH Just Happened ???

Ok,,, i understand the massage
BUT WHY THERE ARE A LIMITATION ON CUTE VARIABLES D-X !?!?!

PS : I understand it,,, someone get another solutions ???

Someone help me find the solution,,,
Or if 'I Do It Wrong'

I sad here trying to make another codes mayhem in my TTS, WAS, TRS, WCAS, And other that need someone to care on them ;/ ...

]{

╟───NW──────┼──────N╢

╓──────────────────╖ ╓──────────────────╖
⠀HP: ██████████ 1E9/1E91E9/1E9 ██████████ :MP
╙──────────────────╜ ╙──────────────────╜

Lyberta
Lyberta's picture
User offline. Last seen 4 years 12 weeks ago. Offline
Joined: 2016-09-10
Posts: 177

Wow, so little.

UltiMaxKom
UltiMaxKom's picture
User offline. Last seen 4 years 44 weeks ago. Offline
Joined: 2016-06-26
Posts: 381

Oh,,,
Thank You Big Grin

Get Them INTO Tables ;/
Gotta make something more complicated (I Hate Tables 'when' it harder to render what inside,,, But i like when it wasn't a Multi-Dimensional Table that can be rendered easily, nvm (lol)),,,
But better than "Stop At That Line"

Ok then,,, i got it, but why there are a limitation Which is 'LOW' for Variables (In a Function though) ? Cannot being Higher eh ? Not a big deal but, oh Virtual Machine Bytecodes, just please let me do it D; on a Skyscraper...
I Think it was the only way then,,, thanks ^^

]{

╟───NW──────┼──────N╢

╓──────────────────╖ ╓──────────────────╖
⠀HP: ██████████ 1E9/1E91E9/1E9 ██████████ :MP
╙──────────────────╜ ╙──────────────────╜

UltiMaxKom
UltiMaxKom's picture
User offline. Last seen 4 years 44 weeks ago. Offline
Joined: 2016-06-26
Posts: 381

Right,,,
FACT : Idk to use "." as a Sugar for Variables 'Before' [e.g game.nvm]
Then you have explain it to me Smile))

The Solution got an Example.
Thanks for the example Big Grin
Maybe the Thing that makes me to use 'Single' not 'Array' variables such table
Because i wanna see my scripts "Easier to Remembered Again"
Which mean, i screwed easily,,,
So i make it "Completely Easy 'For Me'" To render again after i leave it,,,
AND When i got Problem, Single Variable solved as fast as a blink,,,
Which Table is Harder for me to do it,,, But not Impossible, as my experience
75% My Common Problem 'When Testing' was from Table,,,
But Table is More Simple Form, and that actually have solve my problem here,
In Conclusion ...

[If you don't understand what above mean to,,, Then Click Dislike, cuz i'am NOT Understand too xD [UltiMaxKom Click Dislike Twice]]

Do you Two are "Programmer" ??? I guess so C;
Good Programming ^^ !!!

]{

╟───NW──────┼──────N╢

╓──────────────────╖ ╓──────────────────╖
⠀HP: ██████████ 1E9/1E91E9/1E9 ██████████ :MP
╙──────────────────╜ ╙──────────────────╜

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]