Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Quad, EternallyCurious, 1 invisible), 726 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
New function: region_find2() #455080
10/07/15 16:25
10/07/15 16:25
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I use WED regions and lite-C region functionality pretty much all the time and I know of some other users who do so, too.
Currently, when you have overlapping regions for different purposes (such as pathfinding, triggers, sound or enemy areas, ...) region_find() does not bring you very far at it only returns one of them (assuming the position is contained in those regions). I suggest to add a new function:

Code:
region_find2(STRING* name, STRING* filter/ prefix, var num, VECTOR* pos)



The function only searches for regions starting with "filter", like "reg_pf_" or something like that. "num" can be used to find more regions at the same position instead of only the first region by incrementing "num" and calling the function repeatedly, similar to region_get().

Additionally, region_find2() may need another var* parameter or a var return value (or a global variable set) as region_find() does not return the number of the region when there are more regions with the same name - which is quite inconvenient (for subsequent region_get() calls)!

Thanks for your time.


EDIT: I just wanted to write a workaround function/ system but I cannot get the names of all regions in the level, right? I can get the number and dimensions via region_get() but apparently not the names.

Last edited by Superku; 10/07/15 16:55.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: New function: region_find2() [Re: Superku] #456036
11/06/15 16:22
11/06/15 16:22
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Shameless but hopeful bump!


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: New function: region_find2() [Re: Superku] #456061
11/07/15 22:03
11/07/15 22:03

M
Malice
Unregistered
Malice
Unregistered
M



+1

Re: New function: region_find2() [Re: ] #456074
11/08/15 15:33
11/08/15 15:33
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
I guess none of the devs checks this subforum frequently.


POTATO-MAN saves the day! - Random
Re: New function: region_find2() [Re: Kartoffel] #456093
11/09/15 07:53
11/09/15 07:53
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Originally Posted By: Kartoffel
I guess none of the devs checks this subforum frequently.
in fact, there is only one dev... jcl cry


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: New function: region_find2() [Re: 3run] #456100
11/09/15 10:41
11/09/15 10:41
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline
User
Wjbender  Offline
User
W

Joined: Mar 2012
Posts: 927
cyberspace
hi superku .

I have suggested to jcl before ,that a list for regions would be helpfull , like the list for entities .

developer's dont see the need for certain features and updates as we users do , because they dont have to use their software and see the actual difficulties and needs of certain things.

that's just my opinion , anyway I have moved on to other engines , so I don't really care that much anymore ,but I still have my gamestudio ready if I need it so I would still like to see such improvements.


Compulsive compiler
Re: New function: region_find2() [Re: Wjbender] #456103
11/09/15 11:07
11/09/15 11:07
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Yes some access to more hidden stuff like the regions or (EDIT:) the ABT would be great.

Last edited by Superku; 11/10/15 14:49.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends

Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1