Please note that new user registrations disabled at this time.

Scripting Lessons

This forum is to be used for all discussions pertaining to BioWare's Neverwinter Nights, its Shadows of Undrentide and Hordes of the Underdark expansion packs, and any user-created or premium modules.
User avatar
Xyx
Posts: 3104
Joined: Mon Jun 04, 2001 10:00 pm
Location: The Netherlands
Contact:

Scripting Lessons

Post by Xyx »

The [url="http://nwvault.ign.com/dm/scripting/course/index.shtml"]NWScript Scripting Lessons[/url] really start to take off now.

Want to learn? Have a look. :)
[url="http://www.sorcerers.net/Games/BG2/SpellsReference/Main.htm"]Baldur's Gate 2 Spells Reference[/url]: Strategy, tips, tricks, bugs, cheese and corrections to the manual.
User avatar
Craig
Posts: 4996
Joined: Fri Dec 29, 2000 11:00 pm
Location: England
Contact:

Post by Craig »

I know a bit ill look at em
I'm Devious

This is my Gift. This is my Curse. Who am I? I'm SpiderCraig
User avatar
Garcia
Posts: 1017
Joined: Wed Dec 06, 2000 11:00 pm
Location: Denmark (and Slvenia and England (gibraltar)))
Contact:

Post by Garcia »

hrrf I can't make it work eventhough I wrote what it said 100 % correct I won't compile if I press yes or no. it says impossible to compile default project.....do anyone know why??
This weeks health tips:
Don't eat sharp objects it can be the cause of 7 out of 10 bad stomages.
User avatar
Garcia
Posts: 1017
Joined: Wed Dec 06, 2000 11:00 pm
Location: Denmark (and Slvenia and England (gibraltar)))
Contact:

Post by Garcia »

okay now that works now it says that it is not up-to-date!!??? if I press the re-build button nothing if no I get the dos window but it doesn't say 'hallo world'?
This weeks health tips:
Don't eat sharp objects it can be the cause of 7 out of 10 bad stomages.
User avatar
Xandax
Posts: 14151
Joined: Thu Nov 16, 2000 12:00 pm
Location: Denmark
Contact:

Post by Xandax »

Aahh - the "hello world" program (I wonder if there is any programmer tha hasen't made this program :D )

Does the program compile correct and what happens when excecuting the program.
Insert signature here.
User avatar
Garcia
Posts: 1017
Joined: Wed Dec 06, 2000 11:00 pm
Location: Denmark (and Slvenia and England (gibraltar)))
Contact:

Post by Garcia »

oh hi Xan :)

This really pisses me off I have tried things much more difficult than this. I can fully program any homepage or site in html but I cant get this darn thing to work :mad: :D :confused:

the rundos says return code -1
and then it gives me the execution time.....
"press any key to continue" continue to what! it only closes the program and now hallo world for me!'

perhaps i am missing a prototype for my printstring?
This weeks health tips:
Don't eat sharp objects it can be the cause of 7 out of 10 bad stomages.
User avatar
Xandax
Posts: 14151
Joined: Thu Nov 16, 2000 12:00 pm
Location: Denmark
Contact:

Post by Xandax »

This may sound stupid, but do you have the stdio.h and nwscript.h files?
And if you do - try posting your program.

[ 09-14-2001: Message edited by: Xandax ]
Insert signature here.
User avatar
Garcia
Posts: 1017
Joined: Wed Dec 06, 2000 11:00 pm
Location: Denmark (and Slvenia and England (gibraltar)))
Contact:

Post by Garcia »

Umm I am not sure to tell the truth :o
it is on my other computer so I will try and see it would be a stupid thing to lag.

are you reading datamatics Xan?
This weeks health tips:
Don't eat sharp objects it can be the cause of 7 out of 10 bad stomages.
User avatar
Xandax
Posts: 14151
Joined: Thu Nov 16, 2000 12:00 pm
Location: Denmark
Contact:

Post by Xandax »

Originally posted by Garcia:
<STRONG>Umm I am not sure to tell the truth :o
it is on my other computer so I will try and see it would be a stupid thing to lag.

are you reading datamatics Xan?</STRONG>
Yeah - I just started computer science (datamatiker) last week :)

The files should be placed in a directory and the program should be pointed towards this directory.
The stdio.h is the input/output file where the definitions of ei. printin text on screen is located.
This could explain the error.
Otherwise - post the program so we can look at it :)
Insert signature here.
User avatar
Garcia
Posts: 1017
Joined: Wed Dec 06, 2000 11:00 pm
Location: Denmark (and Slvenia and England (gibraltar)))
Contact:

Post by Garcia »

thx ;) I will look in to it today here at work :rolleyes: (slow period right now a little advantage of being an accountant...perhaps the only one?!)
It doesn't really matter if the program works or not but now it has become an obsession. it must work!!!

[ 09-19-2001: Message edited by: Garcia ]
This weeks health tips:
Don't eat sharp objects it can be the cause of 7 out of 10 bad stomages.
User avatar
Tamerlane
Posts: 4554
Joined: Fri May 18, 2001 10:00 pm
Location: The land of Oz
Contact:

Post by Tamerlane »

Originally posted by Garcia:
<STRONG>it must work!!!</STRONG>
:D

Love the enthusiasm, Good Luck
!
User avatar
Garcia
Posts: 1017
Joined: Wed Dec 06, 2000 11:00 pm
Location: Denmark (and Slvenia and England (gibraltar)))
Contact:

Post by Garcia »

Stupidity/enthusiasm :D
This weeks health tips:
Don't eat sharp objects it can be the cause of 7 out of 10 bad stomages.
User avatar
Garcia
Posts: 1017
Joined: Wed Dec 06, 2000 11:00 pm
Location: Denmark (and Slvenia and England (gibraltar)))
Contact:

Post by Garcia »

:mad: 1...2...3...4...5...6...7...8...9...10!
ahhh that help :)


// my single line comment

#include <stdio.h>
#include <NWScript.h>


void main()
{
string sHello = "Hello World...\n";

PrintString ( sHello );
}


"this is what it is suppose to look like right?"

"I have now followed the installation step by step (instead of cliking next next next... :) )
and done exactly as told the two files NWScript.h and stdio.h are both in the C:\lcc\inlclude directory."

"when I compile->make it gives me: (here we go)"
Error c:\lcc\lesson1.c: C:\lcc\include\nwscript.h:12 redefinition of 'printString' previously defined at + c:\lcc\include\nwscript.h 11
Error c:\lcc\lesson1.c: c:\lcc\include\nwscript.h:17 redefinition of 'PrintIntger' previously defined at + c:\lcc\include\nwscript.h 16........etc.

"there must be a little mix-up with the directory" ???????????????
This weeks health tips:
Don't eat sharp objects it can be the cause of 7 out of 10 bad stomages.
User avatar
Garcia
Posts: 1017
Joined: Wed Dec 06, 2000 11:00 pm
Location: Denmark (and Slvenia and England (gibraltar)))
Contact:

Post by Garcia »

Image Image Image

It works!!!! I didn't do anything and all of the sudden it worked?!

I would like to give a big thanks to my mom and dad for believing in me and Xandax for helping me through some rough times and I would like to give out a bit warm thank you to the Banshee community for the emends backup all the way. Without you this would not have been possible :D :D :D :D

I am a happy man :)

[ 09-19-2001: Message edited by: Garcia ]
This weeks health tips:
Don't eat sharp objects it can be the cause of 7 out of 10 bad stomages.
User avatar
Xandax
Posts: 14151
Joined: Thu Nov 16, 2000 12:00 pm
Location: Denmark
Contact:

Post by Xandax »

Congrats :D
So now we are gonna see a lot of scripts from you :D
Do you know what you did to get it to work or did it just work?worked??
I've looked at your code, and all it tells me, is that it didn't like something with the NWScript.h file.

We are gonna start Java tomorrow, I'm looking forward to it - unless I have to do the "Hello World" program, I've already made that i C++ :D

[ 09-19-2001: Message edited by: Xandax ]
Insert signature here.
User avatar
Garcia
Posts: 1017
Joined: Wed Dec 06, 2000 11:00 pm
Location: Denmark (and Slvenia and England (gibraltar)))
Contact:

Post by Garcia »

thank you very much :)
I am gonna massproduce scrips now :D
now that I am a hardcore programmer I think I will take up the holy bible C++ :D :D :D

No it didn't like the NWscript.h so I tried to change directory so that it could find it...that didn't help then I closed the program and opned it again later and it worked first time!???

a lot of my friends are reading data m. I just like learning by doing from the net and what I can find out for my self but they can do some pretty cool stuff sometimes. once they even made my old compaq (read: scumbag) work!!! :D :D
This weeks health tips:
Don't eat sharp objects it can be the cause of 7 out of 10 bad stomages.
User avatar
Tamerlane
Posts: 4554
Joined: Fri May 18, 2001 10:00 pm
Location: The land of Oz
Contact:

Post by Tamerlane »

Well done old chap. :D

Sorry about the lateness, haven't been on the net for a while

[ 09-28-2001: Message edited by: Tamerlane ]
!
User avatar
Garcia
Posts: 1017
Joined: Wed Dec 06, 2000 11:00 pm
Location: Denmark (and Slvenia and England (gibraltar)))
Contact:

Post by Garcia »

Thank you!. I needed your mental back-up for that killer asignment, where have you been :)
This weeks health tips:
Don't eat sharp objects it can be the cause of 7 out of 10 bad stomages.
User avatar
Tamerlane
Posts: 4554
Joined: Fri May 18, 2001 10:00 pm
Location: The land of Oz
Contact:

Post by Tamerlane »

I have exams coming up (next few weeks). So I've been hitting the books more often. I'll pop in now and then. :)
!
User avatar
Garcia
Posts: 1017
Joined: Wed Dec 06, 2000 11:00 pm
Location: Denmark (and Slvenia and England (gibraltar)))
Contact:

Post by Garcia »

Originally posted by Tamerlane:
<STRONG>I have exams coming up (next few weeks). So I've been hitting the books more often. I'll pop in now and then. :) </STRONG>
I am sure you will M8 :D good luck with the exams and do remember there are more important things than exams...posting in GameBanshee ;)
This weeks health tips:
Don't eat sharp objects it can be the cause of 7 out of 10 bad stomages.
Post Reply