I hope this is the right topic to post it in.. it's kind of ambiguous.
Soo.. I have been working on a shooter for some time, but I'm freezing this project for some reasons.
One part of my finished work was a upgrade system for my weapons and I thought since I won't be using it anymore, I could also share it with the world.
Since a video says more than thousand words:
It's fully coded in Galaxy and, if I may say so, rather efficiently and tidy.
Most sub-dialogs are packed into batches and can conveniently be removed/added/modified by the custom functions.
Upgrade prices, icons, text, etc has a lot of customization and more stuff can easily be added.
At the moment there's no bugs or glitches, however the system doesn't fully work because I haven't set-up all weapons. Only the first two weapons are included. But adding the rest is not a hard work. As I said stuff can easily be added.
If anyone has need for something like this, or if anyone wants to learn sort of efficient Galaxy coding, or just wants to look into a complete system, you can check this out.
However, you do need to know some Galaxy. I've added some comments, but I haven't exactly made it noob friendly. It's not so hard to get the code if you spend a couple of minutes analysing it, though.
Since it was supposed to be integrated into my FPS maps (which I might share soon, too) there are some things that aren't used in that menu. I've tagged these things accordingly.
This is very nice! I need to start utilizing galaxy code more often than I have been. Just curious, what does velocity increase in your map? Just the projectile speed (which would increase damage as a side effect)?
@s3rius: Go
Damn dude... Nice work. How did you learn to write this? I know a fair share of coding but this language requires a whole set of definitions from blizzard, which don't always make sense in my opinion. Did you reverse engineer all built in functions to see what they do?
Edit: Also, if I may ask, do you start with plain galaxy or do you fiddle around with the editor first and smooth the code it spills later?
@s3rius: Go Damn dude... Nice work. How did you learn to write this? I know a fair share of coding but this language requires a whole set of definitions from blizzard, which don't always make sense in my opinion. Did you reverse engineer all built in functions to see what they do?
Edit: Also, if I may ask, do you start with plain galaxy or do you fiddle around with the editor first and smooth the code it spills later?
Thanks for sharing, I will study this
Nah I didn't reverse engineer anything. Part of my knowledge stems from Warcraft 3 and other scripting languages.
There's list here on mapster will all native functions listed and (although they aren't explained) it's pretty clear what most of it is doing.
If I don't know how to do something I write it in GUI and look up how it looks like in Galaxy.
My very first tries were massively backed up by using GUI to learn the function names, but I rarely need it anymore. I think for this menu I didn't need it at all.
I've been looking for something about the actual Galaxy code in this game, and have been scouring the site for some examples. I find this and its in the game, which I don't have the beta. I have about 2+ years coding in C(+)(+) so i get the basic jist of the script, just need some examples, could you possibly post a tidbit here or make a video of the script.
I hope this is the right topic to post it in.. it's kind of ambiguous.
Soo.. I have been working on a shooter for some time, but I'm freezing this project for some reasons.
One part of my finished work was a upgrade system for my weapons and I thought since I won't be using it anymore, I could also share it with the world.
Since a video says more than thousand words:
It's fully coded in Galaxy and, if I may say so, rather efficiently and tidy.
Most sub-dialogs are packed into batches and can conveniently be removed/added/modified by the custom functions.
Upgrade prices, icons, text, etc has a lot of customization and more stuff can easily be added.
At the moment there's no bugs or glitches, however the system doesn't fully work because I haven't set-up all weapons. Only the first two weapons are included. But adding the rest is not a hard work. As I said stuff can easily be added.
If anyone has need for something like this, or if anyone wants to learn sort of efficient Galaxy coding, or just wants to look into a complete system, you can check this out.
However, you do need to know some Galaxy. I've added some comments, but I haven't exactly made it noob friendly. It's not so hard to get the code if you spend a couple of minutes analysing it, though.
Since it was supposed to be integrated into my FPS maps (which I might share soon, too) there are some things that aren't used in that menu. I've tagged these things accordingly.
Because of some reason I couldn't attach the map to my first post, so here it is.
This is very nice! I need to start utilizing galaxy code more often than I have been. Just curious, what does velocity increase in your map? Just the projectile speed (which would increase damage as a side effect)?
Yea, projectile speed mainly. Since some weapon missiles fly rather slow (rockets).
@s3rius: Go
When you say fully coded in Galaxy you mean the editor or the C type code?
@Picklefish: Go
Yes, that's what it means. That script language is called Galaxy.
@s3rius: Go Damn dude... Nice work. How did you learn to write this? I know a fair share of coding but this language requires a whole set of definitions from blizzard, which don't always make sense in my opinion. Did you reverse engineer all built in functions to see what they do?
Edit: Also, if I may ask, do you start with plain galaxy or do you fiddle around with the editor first and smooth the code it spills later?
Thanks for sharing, I will study this
Very cool, tagging this.
Nah I didn't reverse engineer anything. Part of my knowledge stems from Warcraft 3 and other scripting languages.
There's list here on mapster will all native functions listed and (although they aren't explained) it's pretty clear what most of it is doing.
If I don't know how to do something I write it in GUI and look up how it looks like in Galaxy.
My very first tries were massively backed up by using GUI to learn the function names, but I rarely need it anymore. I think for this menu I didn't need it at all.
@s3rius: Go
Very nice. Thanks for elaborating, I guess I have to dive into these functions myself :)
I've been looking for something about the actual Galaxy code in this game, and have been scouring the site for some examples. I find this and its in the game, which I don't have the beta. I have about 2+ years coding in C(+)(+) so i get the basic jist of the script, just need some examples, could you possibly post a tidbit here or make a video of the script.
Here's the map script in a txt file. I hope that's what you were looking for.
Sweet thanks, that's what I was looking for.