Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Sun May 19, 2013 3:04 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun Apr 29, 2012 9:16 pm 
Veteran

Joined: Sat Feb 26, 2011 9:36 am
Posts: 264
Location: Κωνσταντινούπολη, Βασιλεύα των Ρωμαύων
Projects: Rzeczpospolita Polska 1647
Perhaps I'm a bit too greedy here and wanting to go for something the scale of the real Europa Universalis in terms of complexity, but I'm currently drowning in variables. Just defining all the necessary variables and the formulae needed to put them where they need to be have consumed about two hundred lines of code, and I'm not even past the ten percent mark yet!

So quick question: How do you guys keep your variables organized and compact?

Also slightly on a tangent: Where can I find some instruction regarding advanced use of the engine? For example, imagemapping and stuffs to turn a collection of menu items into a real, dynamic game?

_________________
One Province Minor - 120 class variables and still counting!

Because there is no such thing as too many variables.


Top
 Profile Send private message  
 
PostPosted: Sun Apr 29, 2012 9:25 pm 
Veteran
User avatar

Joined: Wed Nov 18, 2009 11:17 am
Posts: 358
Location: Germany
Completed: Loren
Projects: PS2
You stuff them into classes. Besides 200 lines of code isn't that much, the definitions for Loren RPGs skills alone is over 4000 lines.
Well, the items are defined in spreadsheets. That's actually another solution you should look into, it's much easier to organize then having all definitions in the code itself.
For my next project I want to use XML files and an editing tool to store the game date. It's much cleaner that way and more flexible then using spreadsheets.

_________________
Avatar created with this deviation by Crysa
Currently working on:
  • Winterwolves "Planet Stronghold 2" - RPG Framework: Phase II


Top
 Profile Send private message  
 
PostPosted: Sun Apr 29, 2012 9:30 pm 
Veteran

Joined: Sat Feb 26, 2011 9:36 am
Posts: 264
Location: Κωνσταντινούπολη, Βασιλεύα των Ρωμαύων
Projects: Rzeczpospolita Polska 1647
Hmm... is there a tutorial somewhere I could read more about this, may I ask?

_________________
One Province Minor - 120 class variables and still counting!

Because there is no such thing as too many variables.


Top
 Profile Send private message  
 
PostPosted: Wed May 02, 2012 9:08 am 
Veteran
User avatar

Joined: Wed Nov 18, 2009 11:17 am
Posts: 358
Location: Germany
Completed: Loren
Projects: PS2
Well that depends on your background in programming. For classes you should search for an object oriented programming tutorial.
XML would be two parts, the xml file definition tutorial and the python xml parser. For the later I would recommend the Element Tree module.
For the spreadsheets you can simply copy paste them into a textfile and iterate over it with a for loop. To get a rows individual entries you use the split method.

I'm not sure what kind of instructions you are looking for regarding "advanced use of the engine", that depends a lot on the kind of game you are creating and on your own programming style. Well at least I don't know any tutorial for anything more complex than a Dating Sim. Projects that try to do something more complex with Ren'Py usually have their own programmer.

_________________
Avatar created with this deviation by Crysa
Currently working on:
  • Winterwolves "Planet Stronghold 2" - RPG Framework: Phase II


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: pwisaguacate


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 post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group