Jump to content

Search the Community

Showing results for tags 'directory'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • News
  • Project Zomboid
    • PZ Updates
    • General Discussions
    • Bug Reports
    • PZ Support
    • PZ Multiplayer
    • PZ Community & Creativity
    • PZ Suggestions
  • PZ Modding
    • Tutorials & Resources
    • Mods
    • Items
    • Mapping
    • Mod Ideas and Requests
  • General Games Development
    • Indie Scene
  • Other Discussions
    • General Discussion
    • Forum Games & Activities

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Twitter


Interests

Found 1 result

  1. I'm almost certain I am having an issue with directory structure since the new move to multiplayer. I have this (Working) example of code here: --+ Raenbow +----+ 2nd May 2014 +-- --+ CHECK FILE EXISTS +---- --prints an error message if file not exist in dir. function checkFileExist(_sFile) local string sFile = _sFile;local file = getFileReader(sFile, false); -- dir: C:\Users\User\Zomboid\Luaif file == nil then --does anything exist there?print("RAENBOW : Could not find file : ".. sFile .. " in C:\Users\User\Zomboid\Lua");elseprint("RAENBOW : Successfully found file :" .. sFile .. " in C:\Users\User\Zomboid\Lua");--File exists, do nothing.--line = file:readLine(); --Could go further, and identify file type (e.g. .png, .txt)end end function raenbow_includeMain()checkFileExist("Item_Ctoken.png"); end Events.OnGameStart.Add(raenbow_includeMain);The code came from my desire to add in a "CheckFileExists" functionality to my main include file. It's position in my folder structure is: So far everything looks good huh? I create a wee server with my computer, to test it will be okay in multiplayer- that's when things get interesting! On the same computer, I boot up my PZ client, that is to say, the one with the "Join Server" option. Still with me? cool. In the join server option, I pop in the loopback, 127.0.0.1, and voila! What once was working when I tried in "Survival" or "Sandbox" will not work! no print statement is returned! What do you think is going on?
×
×
  • Create New...