Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / I need serious help and lots of it

Author
Message
3beth
21
Years of Service
User Offline
Joined: 13th Feb 2004
Location: Good ole Kentucky
Posted: 21st Nov 2004 09:37 Edited at: 24th Nov 2004 04:50
I really need some help but don't know where to start to ask. We have been working on a big game for almost 1 year now, when I say big its over 700 megs. We have had our share of problems, but have solved most of them. Now its down to the icing on the cake, I have a serious needs list, I have studied ALL the help files, this is something where I need some good human help.

First item we are saving parameters of the game for recall when the game is played again. I can write to a file and I can rewrite that file and read that file, but I can not get it to change the values in the game.

say im am saving these two items


/////////////FIXED by help from BOLT///////////////////////////
position object 15000,100,+3,100 is the starting value at the save point object 15000 is at 10000,+54,163000 | that new value I want to save and have object 15000 start there the next time the game is loaded.

also

/////////////FIXED by help from BOLT///////////////////////////
lisaBank=400 | the value starts off at 0 and then grows, I would like to save the value it reaches and have it begin there not a 0 again.

third and its a tough one

/////////////Working with ideals no fix YET///////////////////////////
during the course of the game lisa(object 15000) has purchased many items, like chairs, tvs, beds a house, and moved them to her lot(an area not an object determined by x,y,z coor). I would like to save the information that has been purchased or moved onto the lot. I haven't the slightest ideal on how to do this one, but its being done in other games.

fourth

I have been playing with the media browser dba, it pulls up objects like 3ds, .x to view without object numbers. Is there anyway to do this kind of inrevese like view that unnumbered object and then place it in the game at your desired location and have that savable also.

This one would be cool to have in any game where you want the user to be able to add stuff to say a mass object file.

These are some tuffies but somebody surely has some ideals, I will pay for the phone or fax calls or any other form of communications where I can get some solid answers from someone that knows. One other thing is or has there ever been a generic game engine written it dbc that does the above stuff or close to the above stuff, that is available to look at, the only game I have seen was Axis of Evil it was pretty cool but didn't have the save features I am asking about and I never got to see the source code.

So (pahmageechee) that please help me in Russian if you want to know.

Sincerely,

Beth



http://uksoft.planetdns.net

Beth=The ditsy blonde. I like men and programming, but mainly programmed men!
Marina
21
Years of Service
User Offline
Joined: 21st Mar 2004
Location: Kentucky
Posted: 22nd Nov 2004 05:07 Edited at: 23rd Nov 2004 00:51
Server is back online and repaired.

Marina

My Marina
Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 22nd Nov 2004 06:55
For the first two, I'm confused as to why you can't load in the values as variables? Then just assign those variables to your core variables, i.e. in pseudo code:

if load_successful = 1

lisaBank = load_variable_1

else

lisaBank = 0

endif

Philip

What do you mean, bears aren't supposed to wear hats and a tie? P3.2ghz / 1 gig / GeForce FX 5900 128meg / WinXP home
Marina
21
Years of Service
User Offline
Joined: 21st Mar 2004
Location: Kentucky
Posted: 22nd Nov 2004 07:16
Phillip:

Thanks for the help, we haven't tried exactly for code, something smiliar and it didn't work. Beths out of town tonight but might check in on a laptop. I am going to go try your code be back later.

Marina

My Marina
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 22nd Nov 2004 09:22
When you read the values in from the file, just assign the values to variables in your game. I always use strings in my text files, then just read the strings and use val() to convert them to variables.

Here is a little bit of code from my preferences reading and writing subroutines:

Reading:


Writing:


For your last question: how is the area that you are trying to save defined? Is it just a rectangle? Or is it made up of blocks? I am sure there is a simple enough way of saving it.

Xander Moser - Bolt Software - Firewall
Marina
21
Years of Service
User Offline
Joined: 21st Mar 2004
Location: Kentucky
Posted: 22nd Nov 2004 10:04 Edited at: 22nd Nov 2004 13:08
Woo Hoo again Bolt-
You are the Greatest, I made a save button and your code works again, we now can save the values, I am working on the positions now. How would you save this position? I am guessing with 3 lines breaking it down to xyz, but how?

position object 10000,100,+10,100 this object is taxi 1 named taxi1#X,taxiY#,taxi1Z#


Woo Hoo it works, Bolt:

Ok I wrote a short script to auto load the file, I know how to do that. I manually loaded in the values in the Pref file, it loaded perfectly on start up. Now I don't know how to write a script to make it save, I need some help there. A mousepress button or something I am trying it on my own while I revive the server.


Bolt you are the HERO of the evening.

Now you ask for lot deminsions, I get that for you as soon as i can find it. One lots dimenision is x>1000 and x<3000 z>1000 and z<2000
sincerely,
Marina



OK guys I am not a coder, I am a texturer, but understand kind of how its works. Beth and Mike are the coders, I need more information to put it in the game. I am not getting it to work, I can't get it to see the remote dat file.

Marina

My Marina
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Nov 2004 12:53
area or blocks, just save the (x,y,z) of the object. Have a file structure something like this:

player_id
object_id_1
x,y,z
object_id_2
x,y,z
object_id_3
x,y,z
...

when you load the file, read the first number to know which player these items will belong to, then start reading in object numbers.

"eureka" - Archimedes
Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 23rd Nov 2004 07:27
What baffles me most is how come you are based in Kentucky but have called your organisation "UK Soft"?

Philip

What do you mean, bears aren't supposed to wear hats and a tie? P3.2ghz / 1 gig / GeForce FX 5900 128meg / WinXP home
Marina
21
Years of Service
User Offline
Joined: 21st Mar 2004
Location: Kentucky
Posted: 23rd Nov 2004 08:05 Edited at: 26th Nov 2004 12:54
Philip
The company was started in the Ukraine and then moved to America. The major owner lives here in Guthrie, we are also a small company. As you probably guess I am Russian.

Marina



My Marina
3beth
21
Years of Service
User Offline
Joined: 13th Feb 2004
Location: Good ole Kentucky
Posted: 24th Nov 2004 05:05 Edited at: 24th Nov 2004 05:16
Philip,

I am a KY /Tenn girl, ever heard of uk university of Ky basketball.
That could have also played in naming the company. But Marina was right we started the company in Russia, mainly in Sebastopol Ukraine. We still have some programmers there, its a pretty cool place.

To Phaelax:

I have looked at your code, I am wondering and thinking, this code could be used on our characters maybe we have broken our characters down into several models, a head, body and hands. Could we use it as a wrapper to hold all the items and assign the properties to it to control all the items, if so this maybe an answer to a much more interreactive character. I would like to hear your opinion about your code a little more.

Beth



Beth=The ditsy blonde. I like men and programming, but mainly programmed men!

Login to post a reply

Server time is: 2025-05-24 12:49:47
Your offset time is: 2025-05-24 12:49:47