ID:263752
 
http://img512.imageshack.us/img512/2015/wd2helpdd6.png

Look at the error log. Those errors only appear when I check off NPC Battle AI SavedFilm.dm

Any ideas?
"Too many vars in project" basically is shorthand for saying "You have huge design flaws." Seriously, msg1, msg2, msg3, msg4? You need to look into ways to trim all that down.

You also have too many strings. How about for those messages you put them all in the same string and separate them with newline characters? That sort of thinking will save you a lot of code and also let your project actually work.

Lummox JR
In response to Lummox JR
It works fine.

I'm trying to implement Saved Films into the game (Match Replays), which gave me this error.
how do you live with yourself with that many code files?
In response to Mista-mage123
It may work fine but for how long will it work? As Lummox mentioned, you have some useless variables which you could have found some way to trim down, such adding the texts in to one string or even in to a list!

To fix the error you are having... you have to lower the amount of variables you are using!
In response to GhostAnime
Id listen to Lummox. With all those coding file when it comes for you game to come up and running, updating is take hours and most of the files are usless, combine them
Start from error 1 and work your way down. Double-click the first error and report the code block that line is in if you can't figure it out for yourself.
In response to CaptFalcon33035
This has to be the worst designed game of all time.
Not that your a bad programmer, but really next time you should try to design a better way of going about things.
holy crap why do you have that many DM files? <_<
A good way to set apart code is something like this:
area
combat
communication
GM
guild
logging
object
player
turf
NPC

You know, some general DM files. You dont need a seperate file for every single function or it just defeats the purpose.

If you combine stuff, you wont have the problems your having. Do stuff efficiently and DM will be a lot nice to you.
Mista-mage123 wrote:
Any ideas?

Stop using that many variables. You've used up the entire limit on variables, and as Lummox says possibly strings as well.

The only way to fix this is to start mass-removing variables which aren't needed. And don't stop when the error no longer appears, either. You'd still be very close to the limit.

I highly recommend eliminating AT LEAST 1000 variables, but an amount like 5000 or even 10000 is more reasonable.

Also you should learn how bit flags work, and use a list instead of "msg1" to "msg5".

-- Data
In response to Jamesburrow
I like to organize files as I go along because you never know what files you are going to need. I always have the Main.dm (or just [gamename].dm if I don't get around to naming it, which is perfectly fine as well). The main file holds all global variables and procedures (including world definitions).

If I start using client variables and procedures a lot and it just doesn't fit in the Main file, I'll make a Client.dm file. I always keep a terrain files for the defining of turfs and I'll keep separate files for completed engines of the game.

Maybe I'll have a markup language and a projectile function that shoots the projectiles straight. I put those in separate files, Projectile System and Markup Language.
In response to CaptFalcon33035
What DM files i have are:

Login
Vars
Procs
Objects
Turfs
Areas
and Cheat System because im cool like that >_<

What id suggest to *looks back up to his last message* Oh! Mista-Mage123 is: Start from the beginning and take heed of some of the advice given above.

[IMPORTANT]
Limit how many vars you use and how many DM files you use.
[/IMPORTANT]

~VolksBlade

Ps: Take or Leave my Advice (which was everyone elses advice except the start over) Im just here to make everyone else look better >___<