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.

Work in Progress / Dark Basic Probability Editor v1.0

Author
Message
gandahar
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location:
Posted: 23rd Dec 2009 16:57
Hi!

I created an unpretentious little tool for my personal needs

this is nothing very wonderful and everyone can do the same

just that it is practical! (GUI)

but I think it might be useful to other

The principle is very very simple

In fact the idea was born of a confrontation with the same problems during the development of my applications: to easily control a random generator and avoid long tests to refine the result

For example:

an adventure game, for example, the character moves on the map and random events occur, this tool will help control the probability of an event occurring

This tool generates a small piece of code to paste into your dark basic project
(The data generated is a simple DATA)

you can add your own function to use data generated by clicking edit (will edit the file code.txt)

I placed a little piece of code in code.txt. It's very basic, this is easy to understand example. I leave you to create your own function ...
[href=http://pytcanarias.com/dbproedit1.rar]
Probability DB Editor v1.0[/href]

bye


I do not know if this tool is really relevant, but I find it useful ..

in fact I may be wrong, you know an easier way to control the results of a random generator?

//

Attachments

Login to view attachments
Kryogenik
15
Years of Service
User Offline
Joined: 22nd Sep 2009
Location: Heidelberg, Germany
Posted: 23rd Dec 2009 19:49
I don't understand. Can't you just use the rnd() command? Say move object 10 has 50% probability move object 20 has 30% probability and move object 30 has 20% probability in this pseudocode:

random=rnd(10)
if random=0 or random=2 or random=4 or random=6 or random=8 then move object 10
if random=1 or random=3 or random=5 then move object 20
if random=7 or random=9 then move object 30
gandahar
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location:
Posted: 29th Dec 2009 17:31
hi Kryogenik,

of course, but if you have more than 200 possible choices, then write the code is slow and tedious.

And imagine how to fine-tune probabilitys ?, it can rapidly become hell running lots of tests...

The idea of a graphical interface to quickly edit probability is best choice i think ...

in few minutes, you can configure complex random events and export it to your dark basic project...

your comments and suggestions are welcome

thanks

//
Stefan p
16
Years of Service
User Offline
Joined: 2nd Nov 2008
Location: Online
Posted: 3rd Jan 2010 01:27
Cool project and might be useful to some people, I like the GUI very nice

I am mother and father, but never nurse.I'm rarely still, but I never wander. What am I? See my sketch
Kryogenik
15
Years of Service
User Offline
Joined: 22nd Sep 2009
Location: Heidelberg, Germany
Posted: 3rd Jan 2010 18:36
@gandahar Didn't think of that. I'll have to look into this sometime.

Login to post a reply

Server time is: 2024-11-24 12:51:25
Your offset time is: 2024-11-24 12:51:25