WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-24-2014, 09:50 AM
fabioped fabioped is offline
Member
 
Join Date: Feb 2013
Posts: 21
Thumbs down Publishing with external libs

Hi!

I'm trying to publish to EXE 3 different games. They are in folder A, B and C. And they all import a common GameLib which resides in same folder as these games (A, B, C, GameLib). The problem is that GameLib hierarquy becomes flat as its gets published.
So I have a couple of folders with images in GameLib (symbols, art, etc), and they all get published in Script/

How can I solve this?

Would it be possible to make this publishing process a bit simpler? maybe addPublishFile/addPublishDirectory should allow virtual_path argument.
Reply With Quote
  #2  
Old 06-30-2014, 01:19 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Are certain resources not loading with the published exe? Are you getting errors when you display the console with the running exe?
Reply With Quote
  #3  
Old 06-08-2017, 05:25 AM
xptomoar xptomoar is offline
Registered User
 
Join Date: May 2017
Posts: 1
Hi!

I am having a similar problem. I have a folder with a game folders and also another folder which is imported by every game script. The situation is described below:

Main Folder
|-Game1
| |-Script1.py
|-Game2
| |-Script2.py
|-GameX
| |-Script3.py
|-CommonFolder
|-CommonFile.py

In every Script.py I write the following code to import the CommonFile:

sys.path.append("../")
from CommonFolder.CommonFile import *


When I publish as EXE, the files from the CommonFolder move to the temporary directory of the game and then it becomes impossible to perform the import as the files are in the same directory than the game and not in the CommonFolder as supposed.

Any hint how to solve this?
Reply With Quote
Reply


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
External package problem from Vizard Package Manager pwsnow Vizard 1 06-13-2014 10:11 AM
Publishing Error hotshotiguana Vizard 2 04-04-2012 06:02 PM
Publishing and exe that uses Tkinter kevin Vizard 1 06-09-2011 04:02 PM
Collision recording and external data saves just alex Vizard 2 01-29-2010 10:46 AM
External Trigger via LabJack ursi Plug-in development 10 01-21-2010 11:57 AM


All times are GMT -7. The time now is 04:24 AM.


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