Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 01.07.2006, 03:36   #1
Bradj
Архивный участник
 
Join Date: Jun 2006
Posts: 17
Default [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!
Bradj is offline  
Old 01.07.2006, 04:48   #2
Truffe
Архивный участник
 
Join Date: May 2005
Posts: 944
Default

Search please.
This has been explained MANY times.
Truffe is offline  
Old 01.07.2006, 04:57   #3
Bradj
Архивный участник
 
Join Date: Jun 2006
Posts: 17
Default

I have been searching for a few hours ><

I got home at 9 and haven't stopped since. Its 12am
Bradj is offline  
Old 01.07.2006, 05:14   #4
DeKoth
Архивный участник
 
Join Date: Apr 2006
Posts: 236
Default

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.
DeKoth is offline  
Old 01.07.2006, 08:31   #5
ateh
Архивный участник
 
Join Date: Apr 2006
Posts: 118
Default

nasc compilation guide? lol
Start - Run: "cmd"
C:\...\> nasc myscript.txt
and done
ah - txt file has to be in Unicode.
ateh is offline  
Old 01.07.2006, 09:02   #6
Truffe
Архивный участник
 
Join Date: May 2005
Posts: 944
Default

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.
Truffe is offline  
Old 01.07.2006, 20:10   #7
Bradj
Архивный участник
 
Join Date: Jun 2006
Posts: 17
Default

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...
Bradj is offline  
Old 01.07.2006, 20:34   #8
DeKoth
Архивный участник
 
Join Date: Apr 2006
Posts: 236
Default

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?
DeKoth is offline  
Old 01.07.2006, 20:48   #9
Bradj
Архивный участник
 
Join Date: Jun 2006
Posts: 17
Default

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

Thankfully ateh put up what I needed!

Thank you ateh
Bradj is offline  
Old 01.07.2006, 20:59   #10
ateh
Архивный участник
 
Join Date: Apr 2006
Posts: 118
Default

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"
ateh is offline  
Old 01.07.2006, 23:07   #11
Truffe
Архивный участник
 
Join Date: May 2005
Posts: 944
Default

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.
Truffe is offline  
Old 02.07.2006, 04:02   #12
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

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"
RipperX is offline  
Old 02.07.2006, 08:03   #13
ateh
Архивный участник
 
Join Date: Apr 2006
Posts: 118
Default

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"
ateh is offline  
Old 02.07.2006, 14:43   #14
Bradj
Архивный участник
 
Join Date: Jun 2006
Posts: 17
Default

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!
Bradj is offline  
Old 03.07.2006, 15:29   #15
kadi
Архивный участник
 
Join Date: May 2006
Posts: 15
Default

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
kadi is offline  
Old 03.07.2006, 17:57   #16
Truffe
Архивный участник
 
Join Date: May 2005
Posts: 944
Default

Don't blame me if you never learned what logic was.
Truffe is offline  
Old 03.07.2006, 19:37   #17
Bradj
Архивный участник
 
Join Date: Jun 2006
Posts: 17
Default

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.
Bradj is offline  
Old 03.07.2006, 20:37   #18
Truffe
Архивный участник
 
Join Date: May 2005
Posts: 944
Default

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.
Truffe is offline  
Old 03.07.2006, 22:05   #19
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

Thruth is right, in other threads we speak about this, a correct search will be usefull, so don't try defend this post.
RipperX is offline  
Old 03.07.2006, 22:17   #20
Truffe
Архивный участник
 
Join Date: May 2005
Posts: 944
Default

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 19:08.