Defining it as a gamemode... How?
#1

Ok, so i downloaded a nice little gamemode from here (again) to start working on. (Alot easier, and i like it)

Now the problem is, that when i compile it, i get no warnings at all nor i get errors. Everything goes fine. But, why i won't see the regular "calculated recources" thingy? Like, CPU use etc.? Is it because there's no enough of lines or what?

I got now only 907 lines... When it should "calculate" it like usually in large gamemodes? :P Just funny to see how much it takes recources and such.
Reply
#2

Do you mean this?

Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:           7176 bytes
Code size:           987300 bytes
Data size:          1718012 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 2728872 bytes
I'd prefer it if it didn't show that to be quite honest - Looks messy .
Reply
#3

Yeah that's what i mean. What should i do to see it? I see only the first line of that
(Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase)

How could i make it seen? :S
Reply
#4

Ok, a new problem... I get this when i start the server.exe:
Код:
[03:10:57] Script[gamemodes/TheDM.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
[03:10:57] Number of vehicle models: 1
The fuck? And the script works only half right. O.o
Reply
#5

I guess that he will be able to find answer soon as possible, if you two will take your pointless argument to private messages.

@Da' J':
As said before, you probably got some big arrays. Also, I guess you've used some advanced scripting styles and got some mistake.
If you remember some things that you lately added that could be the problem, post it's code here or in private message to me and i'll be able to help.
Reply
#6

to obtain the compiler output regardless if a warning/error needs to be printed out, add this as compile option:
Код:
-v2
..to set the stack size, increase the default value of 4096 cells (16384 bytes) to like:
Код:
-S8192
you can also open a CLI by pressing the windows button, select "Run...", input "CMD", then change the directory to your server/pawno path, by typing commands like:
Код:
g:
cd..
cd gta server
cd pawno
pawncc
then you will see all its options. if you try
Код:
pawncc >pawnoptions.txt
/* btw, G: is my games partition, and mylocal server is located there aswell, indeed.
the CD.. is not needed, since changing the directory to another partition will change to its root, if you didnt already switch back from another directory (in case you intend to copy files, but who does that via cli anymore?) */

..and open that textfile you just created, then you recieve this:
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Usage:   pawncc <filename> [filename...] [options]

Options:
         -A<num>  alignment in bytes of the data segment and the stack
         -a       output assembler code
         -C[+/-]  compact encoding for output file (default=+)
         -c<name> codepage name or number; e.g. 1252 for Windows Latin-1
         -Dpath   active directory path
         -d<num>  debugging level (default=-d1)
             0    no symbolic information, no run-time checks
             1    run-time checks, no symbolic information
             2    full debug information and dynamic checking
             3    same as -d2, but implies -O0
         -e<name> set name of error file (quiet compile)
         -H<hwnd> window handle to send a notification message on finish
         -i<name> path for include files
         -l       create list file (preprocess only)
         -o<name> set base name of (P-code) output file
         -O<num>  optimization level (default=-O1)
             0    no optimization
             1    JIT-compatible optimizations only
             2    full optimizations
         -p<name> set name of "prefix" file
         -r[name] write cross reference report to console or to specified file
         -S<num>  stack/heap size in cells (default=4096)
         -s<num>  skip lines from the input file
         -t<num>  TAB indent size (in character positions, default=8)
         -v<num>  verbosity level; 0=quiet, 1=normal, 2=verbose (default=1)
         -w<num>  disable a specific warning by its number
         -X<num>  abstract machine size limit in bytes
         -XD<num> abstract machine data/stack size limit in bytes
         -\       use '\' for escape characters
         -^       use '^' for escape characters
         -;[+/-]  require a semicolon to end each statement (default=-)
         -([+/-]  require parantheses for function invocation (default=-)
         sym=val  define constant "sym" with value "val"
         sym=     define constant "sym" with value 0

Options may start with a dash or a slash; the options "-d0" and "/d0" are
equivalent.

Options with a value may optionally separate the value from the option letter
with a colon (":") or an equal sign ("="). That is, the options "-d0", "-d=0"
and "-d:0" are all equivalent.
..quite useful
Reply
#7

ty. also thank ******, his answer to my inability to solve a compiling issue forced me to do read that at least 10x
(i mean the options, not this page haha, look at this: -v2 -(+ -;+ -D0 -O1 -S65536 -w203 -w204 )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)