ID:263214
 
Deadron/dedreon how ever its spelt..:
#include <deadron/basecamp>


Problem description:

I`m not sure how to spell it now ... but the both ways don`t work.. I`m just the mapper, my boss can open it fine.. When I compile the thng says Error can not open file "" How can I fix this?
Go and download it. Or just delete that includ, and paste this code sumwhere in your code.

////////////////////////////////////////////////
// BaseCamp: From here you can reach Everest! //
////////////////////////////////////////////////
// BaseCamp is Deadron's set of libraries providing
// core game functionality.
//
// This library is used by the other BaseCamp libraries
// for items in common between the libraries.
// It doesn't do anything interesting in itself.

/*
Global GameController variable
------------------------------
This is where the global GameController is stored.
You can access it from anywhere in your code:

GameController.cycle_delay = 3
*/

var/BaseCamp/GameController/GameController




// The rest of this is used by various BaseCamp libraries.
// You don't need to touch any of it.
world
New()
var/result = ..()
if (!GameController)
GameController = new()
return result


BaseCamp/GameController
// Runs the game event loop.
var/tmp
name = "GameController"
initialized = 0


proc
Initialize()
initialized = 1
return

Write()
// GlobalMessage("\red BaseCamp: Illegal attempt to write GameController to savefile!")
world.log << "BaseCamp: Illegal attempt to write GameController to savefile!"
return


client
var/tmp/base_initialized = 0

New()
var/result = ..()
base_Initialize()
return result

proc/base_Initialize()
base_initialized = 1
return
I think you mean "Deadron". Correct me if I'm wrong.
But... I don't think you're supposed to be able to open Deadron.
In response to Evidence
Evidence wrote:
Go and download it. Or just delete that includ, and paste this code sumwhere in your code.

Frankly the latter suggestion is utterly ridiculous. Downloading the library is sensible. Pasting in its code without need is inane. Please don't post code help that is not helpful.

Lummox JR
In response to Lummox JR
I posted the code, because when i looked for BaseCamp by Deadron, it was not there. That is probably why he couldn't #include it. I didn't see you jumping to help, only insult the help that I gave.
In response to Evidence
Insult? He was giving you advice.
In response to Evidence
Evidence wrote:
I posted the code, because when i looked for BaseCamp by Deadron, it was not there. That is probably why he couldn't #include it. I didn't see you jumping to help, only insult the help that I gave.

Telling someone to paste in the entire code for a library is not help at all.

However, you are correct about the library being missing. I'm puzzled why it disappeared, since it's been around for ages. That doesn't have anything to do with why he couldn't include it, though. He couldn't include it because he didn't already have it, not because it's missing from the hub; that merely exacerbates the problem.

Lummox JR
In response to Android Data
To remember the spelling, just think of "Dead Ron", as in: Ron is dead.

O-matic
In response to Lummox JR
Lummox JR wrote:
However, you are correct about the library being missing. I'm puzzled why it disappeared, since it's been around for ages.

Nothing has changed. The library is there, it's just hidden (as it always has been) since it is only useful when accessed by other libraries I released, and in most cases should be auto-downloaded by those libraries.

I was trying to be clever back then, though I probably just out-clevered myself.
First, I'd like to offer Deadron a humble "we're not worthy". That asside, I'd like to help this guy by offering a practical work-free solution to fix his problem so he can still work on the map and his "boss" can still access the library.
//#include <deadron/basecamp>

see, simple. gets rid of the problem without generating new ones, unless your boss activly uses the basecamp code and removing it would cause problems with map generation, but lets hope thats not the case((if it is, look for Deadron's characterhandling library, the basecamp lib comes with it))