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 
 
An insane idea comes to mind

 
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
highv priest



Joined: 01 Mar 2013
Posts: 111

PostPosted: Wed Jun 26, 2013 11:52    Post subject: An insane idea comes to mind Reply with quote

Now as per my understanding of ResMan it loads the resource when you call it from the server, but what I'm wondering is could it be possible to modify the monster stats that are normally unaccessable(such as monster speed, base hit points, perception range, spells slotted, and even the classes themselves as examples) in the ResMan folder using Leto or even System32 to copy the file from a different folder that Leto modified the file in.

If you can modify monster files in the ResMan folder on the fly using Letoscript(creating a method by which the server can automatically change any stats on the creatures allowing you to fully have monsters scaling in power as you saw fit without creating many different blueprints of them or leveling them all up the instant they spawn) then it opens up some really fun and awesome PvM designs. Think of a daily challenge where spawns in one section of the server all became bard/bg/rdd's with DM speed, challenging you to defeat them for a to be determined reward. Imagine if the level 2 fairies all of a sudden became level 40 fairies leveled as monk/wm/rogues. Hell the possibilities are quite infinite and so is the entertainment value. Think of other such examples as the Mad Moxxi DLC for Borderlands where you have players pitted in an arena with some sadist ring leader facing off against previous spawns they easily destroyed that have been brought back as ubers of themselves. Imagine the possibilities of instituting rules changing each round such as "Super Speed!!!!", relog the players with modified moverates acting like a loading screen and let the games begin as the players and monsters all move super fast!

My question is does ResMan actually load them when you call them or does it load them when the server loads(essentially acting as a secondary cache in that case)?
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Wed Jun 26, 2013 21:30    Post subject: Reply with quote

Yes, it loads resources when the server requests them.
And yes, you can use Leto or nwn-lib to edit the resources before loading them. I recommend Ruby+nwn-lib since it's a more flexible and reliable library, backed by a mainstream programming language with all its libraries. And, unlike Leto, both are active and supported.
In fact, quite a few servers already use this approach. For example, I've seen somewhere that you can buy a house in-game, upload a module via web interface, then the server unpacks the .mod file, checks everything for validity, then copies the resource files to ResMan folder and loads the area in the game (with NWNX Areas).
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Ravine



Joined: 26 Jul 2006
Posts: 105

PostPosted: Wed Jun 26, 2013 22:17    Post subject: Reply with quote

virusman wrote:
For example, I've seen somewhere that you can buy a house in-game, upload a module via web interface, then the server unpacks the .mod file, checks everything for validity, then copies the resource files to ResMan folder and loads the area in the game (with NWNX Areas).


OMG. ^^^

However, modifying creatures with leto and stuff...why? You can do that mostly with nwscript + funcs + DM commands. But i cannot recall functions to levelup a creature - except LevelupHenchman, where the creature must be at lvl1 and intact (as i recall).
I'm using ResMan, and i just create the creature in the toolset, and upload to resman dir.
Back to top
View user's profile Send private message
axs



Joined: 11 Feb 2005
Posts: 76

PostPosted: Wed Jun 26, 2013 22:20    Post subject: Reply with quote

virusman wrote:
In fact, quite a few servers already use this approach. For example, I've seen somewhere that you can buy a house in-game, upload a module via web interface, then the server unpacks the .mod file, checks everything for validity, then copies the resource files to ResMan folder and loads the area in the game (with NWNX Areas).

Hm, I've tried to do that, but server crashed often (linux).
Mostly when new player enters the game or when dm possess creature, coredumps indicates its related with minimap memory allocation.

So... sadly, only I've this problem?
Back to top
View user's profile Send private message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Fri Aug 09, 2013 11:21    Post subject: resman Reply with quote

ResMan loads them in real time - each time the resource is demanded.
So if you create 5 monsters who's resref is mymonster

It will load the utc file 'mymonster.utc' 5 times.
You can change the utc in toolset, move the utc to the external sources folder, and create another 5 creatures, and the creature will reflect those changes.

That being said - I think resman might be configured to cache the utc in memory, and only load new external versions of it if the external file differs from the internal.

I use resman alot for debugging.
I can be logged into my server, have toolset open, compile a script, upload to my external sources folder, and test the script without having to restart the server.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion All times are GMT + 2 Hours
Page 1 of 1

 
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