Re: suggestions on how to deal with destruction of a class?

2015-03-05 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? I know how one can go about getting libraries which do not work with the BGT FFI to work with the BGT FFI.  I have seen the library in question.  I am almost certain this is a specific example where someone wrapped FMODEx with a C

Re: suggestions on how to deal with destruction of a class?

2015-03-05 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? @camlorn : a 3D sound lib is available for BGT, using FMODEx wrappers it's still in debug but it's working! How, will you tell me, because it uses a lot of structures? In fact, you only keep the reference of the str

Re: suggestions on how to deal with destruction of a class?

2015-03-05 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? @camlorn : a 3D sound lib is available for BGT, using FMODEx wrappers it's still in debug but it's working!For BGT casts, you can cast a handle using : MyChildClass@ castedObj = cast(NonCastedReference); it returns n

Re: suggestions on how to deal with destruction of a class?

2015-03-05 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? @camlorn : a 3D sound lib is available for BGT, using FMODEx wrappers it's still in debug but it's working! URL: http://forum.audiogames.net/viewtopic.php?pid=2075

Re: suggestions on how to deal with destruction of a class?

2015-03-05 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Ah, thanks. So then, how would I effect the enemy via the dictionary? From what I understand from the helpfile, I'd have to create a generic enemy, then do something like enemies.get("key", enemy);Where enemy is

Re: suggestions on how to deal with destruction of a class?

2015-03-05 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? The idea is this: it's an enemy base class, but some things are going to want to "cast" down the tree.  That is, if a piece of code knows that enemy 53 is actually a tank and needs to do tank things to it, it&#x

Re: suggestions on how to deal with destruction of a class?

2015-03-05 Thread AudioGames . net Forum — Developers room : Dranelement via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Ah, okay. I'll see if I can find the angelscript docs and figure it out. My regret at choosing bgt is growing very fast, though... URL: http://forum.audiogames.net/viewtopic.php?pid=207529#p2

Re: suggestions on how to deal with destruction of a class?

2015-03-05 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Grr. You've just moved into Angelscript specific territory and consequently are beyond where I can help.  That's the basic idea, but I don't know how Angelscript type casting and polymorphism stuff works well eno

Re: suggestions on how to deal with destruction of a class?

2015-03-05 Thread AudioGames . net Forum — Developers room : Dranelement via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Ah, thanks. So then, how would I effect the enemy via the dictionary? From what I understand from the helpfile, I'd have to create a generic enemy, then do something like enemies.get("key", enemy);Where enemy is

Re: suggestions on how to deal with destruction of a class?

2015-03-05 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? @Dranelement:yes.  The id is the key, the enemy is the value.@Genroa:Unless something has majorly changed in the last 6 months, no.  You have to write chunks of code in C just to get most libraries to fit BGT's pitiful DLL su

Re: suggestions on how to deal with destruction of a class?

2015-03-05 Thread AudioGames . net Forum — Developers room : Dranelement via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? So, I'm a little confused about how dictionaries in bgt work. do I just assign the value to a handle of whatever enemy? or, something else. URL: http://forum.audiogames.net/viewtopic.php?pid=207523#p2

Re: suggestions on how to deal with destruction of a class?

2015-03-05 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? What about fmodex and/or bass libraries? URL: http://forum.audiogames.net/viewtopic.php?pid=207503#p207503 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin

Re: suggestions on how to deal with destruction of a class?

2015-03-05 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Libaudioverse isn't a base.  Libaudioverse isn't even really aimed at audiogames specifically.  Libaudioverse equivalents exists in exactly two forms currently.  One is GPL with no option for dual licensing, availab

Re: suggestions on how to deal with destruction of a class?

2015-03-05 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? This is exaclty what i'm trying to do with my own projects : providing ready-to-use classes like characters, weapons and items, all working together with a big Game class. I don't think it will remove the "easy part

Re: suggestions on how to deal with destruction of a class?

2015-03-05 Thread AudioGames . net Forum — Developers room : Alan via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Hi there,I fully agree, Genroa. A lot of people cannot develop cause they are reinventing the wheel again and again.Hum, curious, Camlorn saying we don't need more basis... But he is developing another audio library. Wait, wa

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Learning is always good.  And there is something to be said for duplicating existing technology specifically to learn about it.But we don't need more bases for audiogames.  We need people to realize that these bases already

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : Dranelement via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? It'shard to say. I think, for me, even though doing this has been incredibly annoying, I've also learned a lot from it, which is always a good thing. URL: http://forum.audiogames.net/viewtopic.php?pid=2074

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? I will change that! *epic voice and all* seriously, we really need more bases for audiogames, everyone is inventing the wheel again everywhere URL: http://forum.audiogames.net/viewtopic.php?pid=207440#p207440

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? No, it doesn't.  I am merely listing all the problems with Java.  If many blind people were using the language for hobby programming, then we'd probably see audiogames in it. URL: http://forum.audiogames.net/viewtop

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Java as no need to use the swing dinosaur or any GUI for audiogames URL: http://forum.audiogames.net/viewtopic.php?pid=207431#p207431 ___ Audiogames-reflector mailing list

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? If you think you need threads, I shudder to know what your engine will look like.  Most non-3D games use exactly 1 thread only.  Many giant webservers use exactly 1 thread only.  Threads solve nothing in terms of complexity

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? I am currently only programing in C, Java and BGT. If I port my engine in Java, this will be a new thing, it has never been done before in Java I don't know what everyone have with Java; the standart library is so huge that

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? I am currently only programing in C, Java and BGT. If I port my engine in Java, this will be a new thing, it has never been done before in Java I don't know what everyone have with Java; the standart library is so huge that

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : Dranelement via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? I understand where you're coming from. I already am running into some of these problems, especially in regards to the physics and astar. The implementation in bgt requires a 2d array, which my game doesn't use. I'l

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? I don't follow what you're trying to say.  Bgt's programming language is Angelscript, the FFI is not developed enough to let you talk to anything complicated, and therefore, yes, everything you do is Angelscript. 

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? BGT isn't really bad, this isn't what I say. But:- sounds and some basic stuff is done, but nothing else- oriented object programation is so basic you have to use AngelScript syntax to do even basic things in OOP BGT (re

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? BGT isn't really bad, this isn't what I say. But:- sounds and some basic stuff is done, but no more class- oriented object programation is so basic you have to use AngelScript syntax to do even basic things in OO

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? BGT isn't really bad, this isn't what I say. But:- sounds and some basic stuff is done, but nothing else- oriented object programation is so basic you have to use AngelScript syntax to do even basic things in OO

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : Dranelement via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? yes. I'm coming to that realization far too late, unfortunately. If this weren't a school project I'd probably just recode in c++, or some other programming language. It feels like I'm at that point though

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Exactly camlorn. But I started my engine project in BGT... But I'm sure that one day I will port my project on another language. Everything is to create in BGT. URL: http://forum.audiogames.net/viewtopic.php?pid=207396#p2

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? You're reinventing spatial hashes.  This is part of why I try to convince people not to use BGT in the long run, though unfortunately there's nothing that's quite so easy on day one. URL: http://forum.audiogames.ne

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? I am currently trying something : if an enemy is on the case x=3 y=2, I store its reference in a dictionary with the key "3;2". If something is in front of your weapon, you can instantly know it. And you remove the ref

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : Dranelement via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? How exactly would that work? I need to check all the enemies on the level to see if they intersect with the weapon. Get keys seems like it will do what I need, though. Thanks. URL: http://forum.audiogames.net/viewtopic.php?pid

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? You're better off arranging the keys in your dictionary so you don't have to iterate through all of them, but if you really need to, use the get_keys method. URL: http://forum.audiogames.net/viewtopic.php?pid=2073

Re: suggestions on how to deal with destruction of a class?

2015-03-04 Thread AudioGames . net Forum — Developers room : Dranelement via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? So, I've been looking into dictionaries, and they do seem like they are what I need.  I'm confused on a few points still, though.First, how can I go through the entire dictionary to check for things? For example:When

Re: suggestions on how to deal with destruction of a class?

2015-03-02 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? I will still maintain until the end of time that you should never, ever rely on its behavior. URL: http://forum.audiogames.net/viewtopic.php?pid=207099#p207099 ___ Audiogames

Re: suggestions on how to deal with destruction of a class?

2015-03-02 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? I think garbage_collect() has to be called sometimes if you "send a lot of objects to destruction and create a lot of other objects". To clean the memory more often than BGT would URL: http://forum.audiogames.net/vie

Re: suggestions on how to deal with destruction of a class?

2015-03-02 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? I have no idea how this works, but there is a way to run the GC explicitly (garbage_collect()). URL: http://forum.audiogames.net/viewtopic.php?pid=207086#p207086 ___ Audiogames

Re: suggestions on how to deal with destruction of a class?

2015-03-02 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Yeah.  To use an analogy, if it's a mud, the keys are the room vnums and the values are the room objects.  You can convert ints to strings, so problem solved.I personally give everything in my games a globally unique id these

Re: suggestions on how to deal with destruction of a class?

2015-03-02 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? For my projects I used a generated ID solution. I generate a unique ID for each object or I use a "name" attribute. Then I store the reference as the value. (because unfortunately BGT dictionaries only accept strings as

Re: suggestions on how to deal with destruction of a class?

2015-03-02 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? For my projects I used a generated ID solution. I generate a unique ID for each object or I use a "name" attribute. Then I store the reference as the value. (because unfortunately BGT dictionaries only accept stri

Re: suggestions on how to deal with destruction of a class?

2015-03-01 Thread AudioGames . net Forum — Developers room : Alan via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Hi!I didn't know BGT has dictionaries. Just curious, Genroa and Camlorn, what do you want to store in each dictionary value? Key = object refference, and value? Do you mean an unique id generated when creating a new instance

Re: suggestions on how to deal with destruction of a class?

2015-03-01 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? I use them for everything.  They're usually better than arrays when it comes to "hold a big collection of stuff".the interesting thing is this.  BGT is using hashtables.  Asking "Is this in the dictionary&

Re: suggestions on how to deal with destruction of a class?

2015-03-01 Thread AudioGames . net Forum — Developers room : Dranelement via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Hi guys, thanks very much for the advice! I've never really looked into dictionaries,  but I'm beginning to think that I should. URL: http://forum.audiogames.net/viewtopic.php?pid=2069

Re: suggestions on how to deal with destruction of a class?

2015-03-01 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Exactly, a dictionary can be a good solution to store ennemies and manage them without order! I think this way if you erase the reference in the dictionary the object will just be garbage collected and so you have your solution

Re: suggestions on how to deal with destruction of a class?

2015-03-01 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Exactly, a dictionary can be a good solution to store ennemies and manage them without order! I think this way if you erase the reference in the dictionary the object will just be garbage collected and so you have your solution

Re: suggestions on how to deal with destruction of a class?

2015-02-28 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Okay. I now see the logical error in my assumption that this can be inside the class.  I'd suggest using a dictionary of unique enemy ids to enemies so that each enemy can remove itself without affecting the position of

Re: suggestions on how to deal with destruction of a class?

2015-02-28 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Are  you saying that BGT only allows the removal of array elements from outside the instance representing that element?  I'm not sure why the code can't be abstracted into the enemies themselves, provided that they know

Re: suggestions on how to deal with destruction of a class?

2015-02-28 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? You can only remove dead enemies from outside the class. That said, it's pretty simple:for (uint i=0; i URL: http://forum.audiogames.net/viewtopic.php?pid=206741#p2

Re: suggestions on how to deal with destruction of a class?

2015-02-27 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Hi,I'm having a similar problem in BGT. I managed to get shooting in my game, but when you fire at the enemy, it gives a runtime error:A runtime error occurred.File: C:\Users\EthinP\Documents\troop3\includes\enemy.bgtOn line:

Re: suggestions on how to deal with destruction of a class?

2015-02-27 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? You have to put the enemy class in a central location from which it could be removed.  Ideas for this include an array of enemy objects or, perhaps better, a dictionary of enemy objects.  Depending on how complicated the rest of

Re: suggestions on how to deal with destruction of a class?

2015-02-27 Thread AudioGames . net Forum — Developers room : Alan via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Hi there,So, do you mean you determine if an enemy is dead seting its position vector = null?I'd recommend another aproach: store all enemies in an array of enemy references, this way, you can easyly iterate the whole arra

Re: suggestions on how to deal with destruction of a class?

2015-02-27 Thread AudioGames . net Forum — Developers room : Dranelement via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? Sorry. I meant properties. And, they weren't quite properties before. I had an x and a y value, but they just moved on the 2d array. So I could just go level.enemies[this.x][this.y]=null;Or something like that. Now, be

Re: suggestions on how to deal with destruction of a class?

2015-02-27 Thread AudioGames . net Forum — Developers room : keyIsFull via Audiogames-reflector
Re: suggestions on how to deal with destruction of a class? I don't understand what the difficult is if you meant that by putting the coordinates in class methods, the methods just returned the coordinates. If you still have a 2d array of enemies in your level class, you can just ge

suggestions on how to deal with destruction of a class?

2015-02-27 Thread AudioGames . net Forum — Developers room : Dranelement via Audiogames-reflector
suggestions on how to deal with destruction of a class? Hi, I'm having a bit of trouble thinking of a way to cause enemies to die with my current setup, and was wondering if anyone had any suggestions. At this point, it works like this:I've got a level class, with an array of ene

suggestions on how to deal with destruction of a class?

2015-02-27 Thread AudioGames . net Forum — Developers room : Dranelement via Audiogames-reflector
suggestions on how to deal with destruction of a class? Hi, I'm having a bit of trouble thinking of a way to cause enemies to die with my current setup, and was wondering if anyone had any suggestions. At this point, it works like this:I've got a level class, with an array of ene