Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [Request] NASC Compiling Help (https://postpacific.loc-online.com/showthread.php?t=5015)

Bradj 01.07.2006 03:36

[Request] NASC Compiling Help
 
I have a rather large quest ready to test but I am not able to compile it because... I dont know how.

Is there anyway someone could post a little help up for us noobs so that we could possibly understand how to use NASC.

Thanks in advance :)

p.s. Once I get this figure out I will Share my quest. It is an S grade weapon quest. Completely custom!

Truffe 01.07.2006 04:48

Search please.
This has been explained MANY times.

Bradj 01.07.2006 04:57

I have been searching for a few hours ><

I got home at 9 and haven't stopped since. Its 12am :(

DeKoth 01.07.2006 05:14

haha ive been on these forums for ages, and thats still something ive yet to come across truth. Why dont you be so kind to write this poor man a detailed guide and sticky it so that no one will ever have the terrible nasc compilation problem ever again.

ateh 01.07.2006 08:31

nasc compilation guide? lol
Start - Run: "cmd"
C:\...\> nasc myscript.txt
and done
ah - txt file has to be in Unicode.

Truffe 01.07.2006 09:02

Quote:

Originally Posted by DeKoth
haha ive been on these forums for ages, and thats still something ive yet to come across truth. Why dont you be so kind to write this poor man a detailed guide and sticky it so that no one will ever have the terrible nasc compilation problem ever again.

How come I saw it in several topics then...?
That's how I learned to use it. I saw those posts.

And it's THruth*.

Anyway, ateh explained it clearly enough.

Bradj 01.07.2006 20:10

Quote:

Originally Posted by ateh
nasc compilation guide? lol
Start - Run: "cmd"
C:\...\> nasc myscript.txt
and done
ah - txt file has to be in Unicode.

I'll try that...

Alright it worked but gave me an error

Code:

ERROR(1) : undefined super class[default_npc] at class [charles_thegreat] definition
ERROR(18) : syntax error
Fail to compile, total error count = 2

Guess its time to figure out wtf is wrong with it :|

I love debugging...

DeKoth 01.07.2006 20:34

only reason i said something thruth was b.c the "try searching" speech takes just as much time to tell him how to do it. why bother?

Bradj 01.07.2006 20:48

Plus it's not like I haven't looked... B/c I have :|

Thankfully ateh put up what I needed!

Thank you ateh :)

ateh 01.07.2006 20:59

you are trying to compile something like this:
Code:

class charles_thegreat : default_npc {
      [your code]
}

this means "charles_thegreat" is supposed to be child class from class "default_npc", but nasc doesnt see any definition of class "default_npc"...

if you want to compile this class only write sometrhing like this:
Code:

class default_npc { }
class charles_thegreat : default_npc {
      [your code]
}

and after compile delete:

class default_npc : (null)
class_end

from output file "ai.obj"

Truffe 01.07.2006 23:07

Quote:

Originally Posted by DeKoth
only reason i said something thruth was b.c the "try searching" speech takes just as much time to tell him how to do it. why bother?

Because searching CORRECTLY before asking anything sounds seriously LOGICAL to me...

Anyway, end of offtopic. No need to discuss that again.

RipperX 02.07.2006 04:02

Quote:

Originally Posted by ateh
you are trying to compile something like this:
Code:

class charles_thegreat : default_npc {
      [your code]
}

this means "charles_thegreat" is supposed to be child class from class "default_npc", but nasc doesnt see any definition of class "default_npc"...

if you want to compile this class only write sometrhing like this:
Code:

class default_npc { }
class charles_thegreat : default_npc {
      [your code]
}

and after compile delete:

class default_npc : (null)
class_end

from output file "ai.obj"

something more simple delete ": default_npc" and when your code is compiled change "charles_thegreat : (null)" to "charles_thegreat : default_npc"

ateh 02.07.2006 08:03

both ways are good, but if you have a lot of .txt files with single classes and come back to them after few days/weeks you won't remember to change (null) to "default_npc"

Bradj 02.07.2006 14:43

I fixed all of the MAJOR errors. They were all caused by my ignorance with this language and the basic formatting of it! Which is to be expected.

I have gone on to bigger and better errors now! Been getting alot of them conquered though! I will post them in a bit :)

EDIT!!!!

Wow just kidding about posting the errors... I just changed some variables around (again caused by ignorance) and it ran ...

Success!!!

I need to make a tutorial on how to do this so other people wont be as annoying as me!

kadi 03.07.2006 15:29

truth i dont know ur prob but if i see ur avatar then i get a idea
if he have a question he ask in forum and for that are forums
created i think

Truffe 03.07.2006 17:57

Don't blame me if you never learned what logic was.

Bradj 03.07.2006 19:37

Thruth if it is on the forums then please link me... Prove me wrong... I could not and cannot find anything regarding how to compile...

I know how to do it now because I PM'd another member and he graciously told me.

Thanks for your help though. I guess.

Truffe 03.07.2006 20:37

https://postpacific.loc-online.com/f...pic.php?t=3375

Took me 30 seconds to find it using the almighty search function.
And I learned how to use nasc with that topic.

RipperX 03.07.2006 22:05

Thruth is right, in other threads we speak about this, a correct search will be usefull, so don't try defend this post.

Truffe 03.07.2006 22:17

I'm gonna write a tutorial about the search function lol...since it seems most of the people can't find anything with it. :?


All times are GMT. The time now is 15:26.