Compiling
#1

Alright, i have been working with a community and been working there as a scripter and Co-Owner.

We have been adding and modifying a gamemode (a private one), we have customized it, However we are having troubles with the script, The compiling time is infinite everytime we removed a thing from the original code, or if we modified one of the old code. However, adding things doesn't make the compiling time infinite but instead compiles time takes 5 minutes (a huge RP script).

We really need this as we need to remove some codes to fix the bugs.

What do you think is causing the problem?? Do we need to do some stuffs to fix it?

NOTE: I have a slow PC but that doesn't mean it is the cause of it, as i have mentioned, it compiles fine when you do not touch the old codes, This problem also occurs on a friend of mine who originally had the script.
Reply
#2

How big is the AMX file after you modify the script into the new one?
Reply
#3

0 AMX as i have told you it can't compile, But if you are talking about the previous compile which works out properly here.

19.1 MB
Reply
#4

I've actually had one of these problems before when I was using notepad++ and one of the line codes were WAY too long and I had to remove this line to make the compiler actually work otherwise it would compile forever. Perhaps you've got a really big line of code but don't rely on my word.
Reply
#5

So what does that mean? Do i have to reduce some includes, vars?

There are commented script line which doesn't make any sense.
Reply
#6

These are several reasons why compiling takes time:
- Maybe you have large array size
- Complicated loops, generally mixing
- Bad code indentations
- So many if statements rather using switch and cases
- More line( i know thats lame ), but use filterscripts
- Must seperate map code if its static and repuire no changes from internally
- Copy and paste, must make use of stock function and macros
- Large var names(sometimes, rare)
- More vars per line instead of implementing arrays

These generaly cause trouble while compiling and also cause lag.

If the amx file is 0, that means there are some critical errors that pawn cant detect or you may say is not capable of. Maybe be brackets missing or etc etc, generally pawn slows and become lazy when you practice large scripts like 19mb holy shit.

EDIT:
Solution: Use powerful pawn compiler or find the errors by removing parts of script and compiling. Thats my way of detecting the flaw and then fixing one by one.
Reply
#7

Thank you for your suggestions and opinions, Is there a way to do it without cleaning it up from the scratch (otherwise i will do so if there is no other way around.)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)