Forum

create/read external file.

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

create/read external file.

Postby endercraft4 » Mon May 27, 2013 12:34 pm

can quake read an external file ("file/monsterstats")
i want to check if file exists and if not create it.
if the file does exist then it will read var from the file. (health, name)
then assign those stats to it's own.
endercraft4
 
Posts: 4
Joined: Wed May 15, 2013 2:24 am

Re: create/read external file.

Postby Spike » Mon May 27, 2013 4:51 pm

research frik_file
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: create/read external file.

Postby endercraft4 » Thu May 30, 2013 2:56 am

thanks.
doe anyone know how to set the player to alive after he died.
ive got the player respawning in singleplayer. but he just lay on the ground dead.
endercraft4
 
Posts: 4
Joined: Wed May 15, 2013 2:24 am

Re: create/read external file.

Postby gnounc » Thu May 30, 2013 4:18 am

Looks like its just

Code: Select all
respawn()


be more specific about what you've done in your mod
and how you want to become no longer dead, and under what circumstances?
User avatar
gnounc
 
Posts: 424
Joined: Mon Apr 06, 2009 6:26 am

Re: create/read external file.

Postby endercraft4 » Thu May 30, 2013 4:39 am

my mod is based on bioshock.
here is the link.
http://www.moddb.com/games/bioquake
thanks. its working. now when the player dies he is respawned at the beginning of the map. but with half of the max health.
ill change it to the latest check point later.
endercraft4
 
Posts: 4
Joined: Wed May 15, 2013 2:24 am

Re: create/read external file.

Postby gnounc » Thu May 30, 2013 7:44 am

why does your page say you're looking for a unity coder?
User avatar
gnounc
 
Posts: 424
Joined: Mon Apr 06, 2009 6:26 am

Re: create/read external file.

Postby endercraft4 » Thu May 30, 2013 10:18 pm

The main version will be for quake. But I wanted to also make it in unity for pc.
I've been trying to learn unityscript ( like java) but it kinda difficult.
I'm coding the quake version, makeing the models, and most levels.
endercraft4
 
Posts: 4
Joined: Wed May 15, 2013 2:24 am

Re: create/read external file.

Postby leileilol » Fri Jun 07, 2013 10:52 pm

endercraft4 wrote:my mod is based on bioshock.

*facepalm*

Some important advice: Cease & desist orders aren't worth the loss of a teenager's huge amount of creative time. You will get one and they are no myth.

Instead, be original. Don't make Bioshock and call it a different name (common ignorant "avoid trademark and its totally okay!" tactic)
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest