Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Possible to set up a dev environment for a custom story instead of map?
Shev Offline
Member

Posts: 238
Threads: 25
Joined: Dec 2010
Reputation: 0
#1
Shocked  Possible to set up a dev environment for a custom story instead of map?

I looked at the wiki to see how to set up a dev environment, however this only makes it so that when you run the game it loads out of the map directly, not the custom story itself. Which creates a minor problem for me.

I was wondering if I could get it to just run a custom story instead of just a map.


Also when I minimize the game my mouse shoots up in the upper left hand corner of the screen, which means I have to close the game out and load it again, because with the mouse up there its literally impossible to do anything.

i spam meme 4 raeg
01-16-2011, 02:56 AM
Find
GraphicsKid Offline
Senior Member

Posts: 258
Threads: 34
Joined: Dec 2010
Reputation: 3
#2
RE: Possible to set up a dev environment for a custom story instead of map?

Run it in windowed mode (change this in the options menu). Then to use the mouse outside the game, just pause it or bring up the (f1) debug menu.

EDIT: And yes, I too was actually about to ask the EXACT same question here: can we setup a dev environment for a custom story?

EDIT2: Well okay not the EXACT same thing, but how do you get it to run a map from within a custom story's directory?
(This post was last modified: 01-16-2011, 03:09 AM by GraphicsKid.)
01-16-2011, 03:07 AM
Find
Neatherblade Offline
Junior Member

Posts: 19
Threads: 5
Joined: Jan 2011
Reputation: 0
#3
RE: Possible to set up a dev environment for a custom story instead of map?

Got to custom_story_settings.cfg and change StartMap="YOURMAP.map"
01-16-2011, 10:53 AM
Find
DIGI Byte Offline
Senior Member

Posts: 376
Threads: 20
Joined: Dec 2010
Reputation: 1
#4
RE: Possible to set up a dev environment for a custom story instead of map?

Honestly, the Dev environment isn't that necessary, all you really need is to enable the debug menu (F1)
this will keep the game behaving like it normally would, while still having the debug menu
(This post was last modified: 01-16-2011, 11:28 AM by DIGI Byte.)
01-16-2011, 11:27 AM
Find
Shev Offline
Member

Posts: 238
Threads: 25
Joined: Dec 2010
Reputation: 0
#5
RE: Possible to set up a dev environment for a custom story instead of map?

(01-16-2011, 11:27 AM)DIGI Byte Wrote: Honestly, the Dev environment isn't that necessary, all you really need is to enable the debug menu (F1)
this will keep the game behaving like it normally would, while still having the debug menu
There was a problem with that, but it should be resolved now thanks to this

(01-16-2011, 03:07 AM)GraphicsKid Wrote: Run it in windowed mode (change this in the options menu). Then to use the mouse outside the game, just pause it or bring up the (f1) debug menu.


Also, to keep the thread count lower I'll just ask this here, is it possible to give the player some tinderboxes or something when he starts the game? I was going to do it on the first time entering the entrance area, but thought it'd be smoother if I just had a global.hps (which doens't work) and use
void OnGameStart()
{
}

Smoother as in the entrance area might change a lot, so it'd probably be easier and have less likely to screw up on me doing it this way (as in forgetting to delete the line from the last entrance areas)

i spam meme 4 raeg
(This post was last modified: 01-16-2011, 03:58 PM by Shev.)
01-16-2011, 03:57 PM
Find
Tottel Offline
Senior Member

Posts: 307
Threads: 9
Joined: Nov 2010
Reputation: 0
#6
RE: Possible to set up a dev environment for a custom story instead of map?

http://wiki.frictionalgames.com/hpl2/tut...y_tutorial

It's in the very, very first scripting tutorial that you find.
01-16-2011, 04:56 PM
Find
Shev Offline
Member

Posts: 238
Threads: 25
Joined: Dec 2010
Reputation: 0
#7
RE: Possible to set up a dev environment for a custom story instead of map?

(01-16-2011, 04:56 PM)Tottel Wrote: http://wiki.frictionalgames.com/hpl2/tut...y_tutorial

It's in the very, very first scripting tutorial that you find.

(01-16-2011, 03:57 PM)Shev Wrote: I was going to do it on the first time entering the entrance area, but thought it'd be smoother if I just had a global.hps (which doens't work) and use
Smoother as in the entrance area might change a lot, so it'd probably be easier and have less likely to screw up on me doing it this way (as in forgetting to delete the line from the last entrance areas)

I know of that, but I want to see if its possible to get something like a global.hps to work so that it'd be a lot easier than having to change the script for each area.

i spam meme 4 raeg
01-16-2011, 05:16 PM
Find
Tottel Offline
Senior Member

Posts: 307
Threads: 9
Joined: Nov 2010
Reputation: 0
#8
RE: Possible to set up a dev environment for a custom story instead of map?

By area, I assume you mean areas within ONE map?
01-16-2011, 05:18 PM
Find
Shev Offline
Member

Posts: 238
Threads: 25
Joined: Dec 2010
Reputation: 0
#9
RE: Possible to set up a dev environment for a custom story instead of map?

(01-16-2011, 05:18 PM)Tottel Wrote: By area, I assume you mean areas within ONE map?

Oh sorry. Let me clarify.

I want the character to start out with a couple tinderboxes, however I'm probably going to be changing the entrance area (the area that you enter the custom mod in) a lot, so I think it would be a lot easier to have it so that you get your tinderboxes when you start the custom mod, instead of going into the area because then I don't have to worry about accidentally leaving the script in x-map, and starting out in y-map. SO when I join y-map, and go to x-map I get twice as many tinderboxes as I should have.

i spam meme 4 raeg
01-16-2011, 05:30 PM
Find
Tottel Offline
Senior Member

Posts: 307
Threads: 9
Joined: Nov 2010
Reputation: 0
#10
RE: Possible to set up a dev environment for a custom story instead of map?

Well, yes.. That's what the scripting tutorial does. It gives you the 10 tinderboxes as soon as you start the map.

.. Or I'm still completely misunderstanding you. In that case, sorry. ^^
01-16-2011, 05:55 PM
Find




Users browsing this thread: 3 Guest(s)