WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-03-2010, 08:28 PM
IGoudt IGoudt is offline
Member
 
Join Date: Sep 2009
Posts: 20
Hello,

this is a programming design issue, rather than a Vizard problem. After reading your story I can conclude that you are not familiar with the ideas of importing. Importing a module (which is contained physically in a .py file) is copying all the contents of that "file" to the current .py you are working in. The imported code is not run until you call it, and therefore it will never slow down the performance of your other code.

Don't get me wrong, as I don't know your code and/or experiences in programming in Python, and also considering some other code-snippets you posted on this forum, you might be stuck now because of a wrong design or lack of experience. Your problem/experiment begs for an OOP-solution (it doesnt have to be OOP, but it helps alot), especially since you are working with multiple games it would be a wise idea to work on a container setup for those games.

I could help you with some help on the code if you wish, you can PM me for that for more contact info.
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
IVEx file extenstion unrecognised. sindi Vizard 2 12-10-2009 01:20 AM
problems with output to a text file within executable Saz Vizard 1 07-01-2009 11:01 AM
Read file....many issues Uttama_vizard Vizard 9 07-08-2008 02:16 PM
File Management Uttama_vizard Vizard 2 07-01-2008 09:44 AM
Closing file handles from within function FlyingWren Vizard 1 10-01-2003 06:02 PM


All times are GMT -7. The time now is 06:37 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC