logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Demo module
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Tue Dec 05, 2006 2:21    Post subject: Reply with quote

Papillon, is there any chance of getting a set of functions that allows us to write to the ini/config files? Doing that and using the standard GUI popups, we could do all setup in-game if we wanted -- the user would never even have to open an ini file themselves. Unfortunately, for database plugins that would mean that it would have to allow us to connect to the database after load if info was not initially present, so I'm not sure how feasible it is.
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Tue Dec 05, 2006 9:49    Post subject: Reply with quote

Well, a disconnect and reconnect command would not be too hard.

The idea for setting up the plugins ingame is really cool! What kind of functions would be needed ? Just some to manipulate the settings that are already there, I guess, so no methods for creating new sections or something like that ?

While it's really cool, this could be done in a second version of the demo module as well. Ideally, the main demo module and a database demo module would be available in a basic version first, as soon as NWNX leaves the prototype stadium (which should happen by the end of the year).

Speaking of which: Do you plan to create the database demo module as well, or does someone else want to do it ?
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Tue Dec 05, 2006 17:05    Post subject: Reply with quote

Having that feature for a second version sounds good. I think we'd just need the ability to get and set existing entries in the file(s). The mod could check if the values are blank and prompt for it; or if there are connection issues (or other issues in different demo mods) it would have them re-enter the values to confirm.

I've just got a bit more testing to complete on the database demo/setup module as well as the timer demo module (an NPC times the PC's run from point A to points B and C to show the timers in action Wink ) ; I should have both soon after I get home tonight (GMT-5).

I'm also including a generic demo module that plugin authors can use to create their own demos. That may be another few of days, as I want to make it fairly painless for them to create the demo mod.
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Tue Dec 05, 2006 20:39    Post subject: Reply with quote

Cool, I can't wait to try them out! Thanks for working on this!
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Wed Dec 06, 2006 8:05    Post subject: Reply with quote

Bah -- sleep wins tonight... dozing off at the keyboard here. Having trouble getting storing/retrieval of objects to work, but I think it could be because I'm braindead at the moment. Will take another look and finish up tomorrow evening...
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Wed Dec 06, 2006 11:28    Post subject: Reply with quote

Do you mean Set and GetPersistentObject ? They do not work yet! I guess I should put up a note in sql_include...
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Wed Dec 06, 2006 16:23    Post subject: Reply with quote

Ahhh, that would explain it. Alright, that makes life a bit easier.
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Thu Dec 07, 2006 7:51    Post subject: Reply with quote

Alright, finally!

The main module. THis is what you should be launching in the dedicated server.
http://www.khalidine.com/downloads/NWNX4Demo.zip

The main module looks for modules in the format: "nwnx_demo_" + tolower(subclass). (tolower is worth noting if Linux ever happens)

http://www.khalidine.com/downloads/nwnx_demo_mysql.zip
http://www.khalidine.com/downloads/nwnx_demo_sqlite.zip
http://www.khalidine.com/downloads/nwnx_demo_time.zip

Please let me know if you have any comments, suggestions, or ideas. I plan to have the 'base' demo module available late this weekend, but for now I have to return focus to my PW Wink
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Fri Dec 08, 2006 19:01    Post subject: Reply with quote

Anybody had a chance to test any of these out yet?
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Fri Dec 08, 2006 22:40    Post subject: Reply with quote

Not me... whole lot of work today. But the weekend is coming Wink.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sun Dec 10, 2006 12:26    Post subject: Reply with quote

I had a chance to try out the demo modules today.

First of all, the idea plays out really nicely ! The TIMER demo module is way more fun than I thought it could be.

1) I could not get a MySQL portal to work, i.e. there never was one

2) The SQLite portal worked, but the man always tells me that the pwobjdata table could not be created and that I should check my security settings - which do not exist in SQLite, of course. The object functions do not work yet... the module should say so, in order to not confuse the user. Another idea... if you join the module, you could make the man great you formally if it is the first time he sees you, or say something more familiar if you join a second time. Something like that, which demonstrates the persistence idea. Just a thought, the module is already fine like it is now.

3) The TIMER module worked and is really great!

4) When you join the server, you have a portal right in your face. Could you change the layout a bit, so that the player starts out in front of the portals, with a little sign (or NPC) saying what can be done here and why some of the portals are active and others not. That should improve clarity for new users.

Good work so far! The modules will be awesome, especially how you catch errors and offer possible solutions is great!
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Sun Dec 10, 2006 21:38    Post subject: Reply with quote

Cool, glad you like. I'll take another pass through them tonight and/or tomorrow night and clean up a bit.
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Tue Dec 12, 2006 3:27    Post subject: Reply with quote

The bad news: my computer has started locking up every other time I launch NWN2, so no updates tonight. The good news: my new laptop'll be here tomorrow, so this is just a temporary condition.
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
caloup



Joined: 29 Sep 2006
Posts: 59
Location: albi (france)

PostPosted: Tue Dec 12, 2006 11:31    Post subject: nice work Reply with quote

nice work. The concept of portal is great !

Timerdemo is working nice. That gave an idea to use timer plugin : mini game !

Perhaps a sort of mini labyrinth game with a gift if you make less than X microsecond to find the end of the labyrinth !

Perhaps you could put a message on the entering of the module to say to the player : "Hello boy/girl ! Pass the portal corresponding to the plugin you want to test ! Enjoy ! "

personnally it take me 2 seconde from the first line to the end ! Very Happy
Back to top
View user's profile Send private message
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Mon Dec 18, 2006 0:01    Post subject: Reply with quote

Alright, the main demo module has been revamped:

http://www.khalidine.com/downloads/NWNX4Demo.zip

Changes:
- new layout that I think is a little less intimidating
- added a guide NPC
- added text to appear a few seconds after attempting to enter a portal tha tdoesn't work (such as when no demo mod is available)

Strangely, the mysql mod is now crashing the server. Researching this...

Quote:
personnally it take me 2 seconde from the first line to the end !

Aw, drat. I takes me 2.3.
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development All times are GMT + 2 Hours
Goto page Previous  1, 2, 3, 4, 5  Next
Page 3 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group