Jump to content




NightFall - Tower Defence Game



29 replies to this topic

#21 Lignum

  • Members
  • 558 posts

Posted 18 April 2015 - 03:54 PM

View PostCrazedProgrammer, on 18 April 2015 - 03:31 PM, said:

Can you make it so that the files don't have to be in .nightfall?
I'm currently making a Steam-like game distribution program and I would like to include this game, but because it has hardcoded paths I can't include it.

Can't you put the game in a directory and trick it into thinking it's in root? You should be able to do that easily with os.run or setfenv. Do avoid the latter though, it'll be removed soon.

#22 CrazedProgrammer

  • Members
  • 495 posts
  • LocationWageningen, The Netherlands

Posted 18 April 2015 - 04:48 PM

View PostLignum, on 18 April 2015 - 03:54 PM, said:

View PostCrazedProgrammer, on 18 April 2015 - 03:31 PM, said:

Can you make it so that the files don't have to be in .nightfall?
I'm currently making a Steam-like game distribution program and I would like to include this game, but because it has hardcoded paths I can't include it.

Can't you put the game in a directory and trick it into thinking it's in root? You should be able to do that easily with os.run or setfenv. Do avoid the latter though, it'll be removed soon.
Nope, it's impossible without changing the code.
It has nothing to do with os.run or setfenv, it only has to do with that awsumben13 made everything into an absolute path, and not for example: fs.getDir(shell.getRunningProgram()).."/file"
I hope it gets fixed soon.

#23 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 18 April 2015 - 05:01 PM

What Lignum was suggesting was that you could sandbox the fs API for the games when you run them so that they would think they are in the root directory.

#24 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 18 April 2015 - 05:26 PM

Oh, it does not work, at least for me, if it is in .nightfall so I made it extract in nightfall. The paths are not hardcoded, it uses shell.getRunningProgram()

#25 Exerro

  • Members
  • 800 posts

Posted 18 April 2015 - 06:07 PM

I've stopped working on this, sorry. Waiting to make a new UI library, which is waiting on a new graphics library and the completion of NovaScript. The language has a pretty much finished parser, just working on the type checker and compiler. After that, the UI library will be my priority, followed by this game.

View PostCreator, on 18 April 2015 - 05:26 PM, said:

Oh, it does not work, at least for me, if it is in .nightfall so I made it extract in nightfall. The paths are not hardcoded, it uses shell.getRunningProgram()

What's not working? The game? Or is this just when you have it installed under "nightfall"?

View PostLignum, on 18 April 2015 - 03:54 PM, said:

View PostCrazedProgrammer, on 18 April 2015 - 03:31 PM, said:

Can you make it so that the files don't have to be in .nightfall?
I'm currently making a Steam-like game distribution program and I would like to include this game, but because it has hardcoded paths I can't include it.

Can't you put the game in a directory and trick it into thinking it's in root? You should be able to do that easily with os.run or setfenv. Do avoid the latter though, it'll be removed soon.

Yeah, technically, you can, but I don't feel like writing it any time soon. The new version, however, won't use relative paths, and I think the game itself will be a single file.

#26 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 18 April 2015 - 06:17 PM

Well, it does not install under .nightfall, dunno why. However under nightfall it works

#27 CrazedProgrammer

  • Members
  • 495 posts
  • LocationWageningen, The Netherlands

Posted 18 April 2015 - 06:56 PM

View Postawsumben13, on 18 April 2015 - 06:07 PM, said:

I've stopped working on this, sorry. Waiting to make a new UI library, which is waiting on a new graphics library and the completion of NovaScript. The language has a pretty much finished parser, just working on the type checker and compiler. After that, the UI library will be my priority, followed by this game.

View PostCreator, on 18 April 2015 - 05:26 PM, said:

Oh, it does not work, at least for me, if it is in .nightfall so I made it extract in nightfall. The paths are not hardcoded, it uses shell.getRunningProgram()

What's not working? The game? Or is this just when you have it installed under "nightfall"?

View PostLignum, on 18 April 2015 - 03:54 PM, said:

View PostCrazedProgrammer, on 18 April 2015 - 03:31 PM, said:

Can you make it so that the files don't have to be in .nightfall?
I'm currently making a Steam-like game distribution program and I would like to include this game, but because it has hardcoded paths I can't include it.

Can't you put the game in a directory and trick it into thinking it's in root? You should be able to do that easily with os.run or setfenv. Do avoid the latter though, it'll be removed soon.

Yeah, technically, you can, but I don't feel like writing it any time soon. The new version, however, won't use relative paths, and I think the game itself will be a single file.
I will add this game when the next version is released then :D

#28 クデル

  • Members
  • 349 posts

Posted 06 May 2015 - 07:32 AM

Oh my, the animations are so awesome, kudos! :)

#29 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 06 May 2015 - 09:39 PM

The game is a little bit short, but else great game.

#30 Exerro

  • Members
  • 800 posts

Posted 07 May 2015 - 04:08 PM

Yeah, never got round to finishing it. I have something in the works that should hopefully improve this. Might even get round to making some other games with it.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users