 |
Server Help Community forums for Subgame, ASSS, and bots
|
Author |
Message |
corvey Novice
Joined: Apr 02 2007 Posts: 40 Offline
|
Posted: Thu Apr 12, 2007 2:05 am Post subject: Internal Commands |
 |
|
|
|
The main ORB "Orbit" command that I need first will go into a region check routine about the status of the planet and then proceed based on the criteria. How/where in the ASSS system should I go about doing this? If it's my module, then how does my module interrupt input?
Ideally I need a system like the buy.c system to buy People, Food, Fighters, etc in multiples, not just singles. I tried playing with that to see what happened, and it seems that each number of the prize is associated with a function number. Where are all these prize functions located? In addition to the buy, I would need a sell, and a transfer of items feature.
This would also have to include a transfer of goods to and from the ship, like an inventory system. Does anyone have this module already made to customize for my project? I seen Bak's PBinventory and damn it seems excess for what I need, I was hoping for something easier.
 |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Thu Apr 12, 2007 8:45 am Post subject: |
 |
|
|
|
If you want to know how buy works, then look at buy.c. If that's not specific enough, look at asss/src/core/buy.c. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
corvey Novice
Joined: Apr 02 2007 Posts: 40 Offline
|
Posted: Thu Apr 12, 2007 10:11 am Post subject: |
 |
|
|
|
Dr Brain wrote: | If you want to know how buy works, then look at buy.c. If that's not specific enough, look at asss/src/core/buy.c. |
Look, if you don't want to help me, fine. If you don't like me, that's ok too. Continuing to make rash remarks about what I say in a lot of my post is very inconsiderate. If the post is so idiotic, then have the site admin delete my post or better yet delete my account like Tux did when I complemented them on their Starport version and the similarities to Subspace, in fact, your demeanor is exactly like his. So, if you don't want to help or don't like the stupid post, then don't read or post in any of my topics. THANK YOU
I am a humble person, please don't FUCK with me. Sometimes I have to ask stupid questions to learn and I am supposedly in the correct forum to do so, OK? Obviously I'm trying to learn, and I do not particularly want to make enemies here. If the questions are too stupid, as you are insinuating, then I may have to stop asking questions entirely and figure it the fuck out on my own or forget it. |
|
Back to top |
|
 |
Animate Dreams Gotta buy them all! (Consumer whore)

Age:37 Gender: Joined: May 01 2004 Posts: 821 Location: Middle Tennessee Offline
|
Posted: Thu Apr 12, 2007 12:05 pm Post subject: |
 |
|
|
|
I thought I made a post last night in here, but I don't see it. It also isn't junked, so I'm going to assume I never posted it, and post it again:
I don't understand your first problem. It's probably just me, but could you try rephrasing it? Maybe going into more detail?
Erm, as for the prizes, you're probably talking about the prize constants as defined in defs.h. That's a pretty useful file, btw, keep it handy.
I suggest just creating a new buy module(obviously going by the old one for the similar sections), and add the selling and probably even transfer in on top of that.
Again, since I don't know exactly what you're trying to do, your third problem is tripping me up. transferring items to and from your ship probably isn't what PBInventory does at all. However, it seems pretty simple. Don't let Bak's module daunt you. He has a way of making things incredibly complex. Not in a bad way, there's always a reason for everything he does, and he covers all the bases, and eliminates any chance for failure. For example, look at his poll plugin. I wrote a poll module about 9 months ago, and it was fairly simple. Even with other things in the module, it wasn't even 200 lines of code. Then a few days later Bak released a poll module, and if you take a look at it, he's overloaded it with tons of features and other things. Don't get me wrong, Bak did a great job, but he's on such a higher level than me programming wise that I wasn't able to learn much from it at the time. So depending on your programming skill, it's probably best just to start simple. I've personally learned a lot more trying to make modules from "scratch" than I have trying to modify other people's code.
And just ignore Brain. You'll have to ignore a lot of comments like that here. If you keep trying, someone will eventually answer your question, though.
And lol Brain, I do believe that's asss-1.4.3\src\core\buy.c . He IS using Windows, after all. If you're only going to give one piece of useless advice, you might as well get it right. |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Thu Apr 12, 2007 2:00 pm Post subject: |
 |
|
|
|
corvey wrote: | Look, if you don't want to help me, fine. If you don't like me, that's ok too. Continuing to make rash remarks about what I say in a lot of my post is very inconsiderate. |
You didn't know how ?buy did its stuff. I gave you a pointer. If you can't read ASSS code, you'll have a pretty big problem completing your project.
corvey wrote: | I am a humble person, please don't FUCK with me. Sometimes I have to ask stupid questions to learn and I am supposedly in the correct forum to do so, OK? Obviously I'm trying to learn, and I do not particularly want to make enemies here. |
You asked a stuipid question about how buy does its stuff, I gave you a mildly helpful answer. That was your cue to learn (you did want to, right?) to check out the source for how things work.
corvey wrote: | If the questions are too stupid, as you are insinuating, then I may have to stop asking questions entirely and figure it the fuck out on my own or forget it. |
I never said that, but biting the hand that feeds you doesn't get you far. Telling me to fuck off doesn't make me want to revise my suggestion or provide additional information. Just a hint (again, learn!).
So, maybe try again? Here's a sample:
Ok, I looked at ?buy, but it wasn't really what I needed. I don't understand how to change it to do <insert something here>.
Animate Dreams wrote: | And lol Brain, I do believe that's asss-1.4.3\src\core\buy.c . He IS using Windows, after all. If you're only going to give one piece of useless advice, you might as well get it right. |
No one running a zone should be using 1.4.3. It has at least one highly critical bug. It's better to figure out monotone now, and save yourself many headaches later on. |
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
|
Back to top |
|
 |
BDwinsAlt Agurus's Posse

Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Thu Apr 12, 2007 5:58 pm Post subject: |
 |
|
|
|
Not to get off topic, but did anyone ever get Grel to fix the crashing from chaning arenas? I know Zim fixed it once. I would think that would be a huge priority.
Also, I would recommend making a small custom buy module to see how it all works. You probably need to make your own if you want that stuff you said to go smoothly. Editing buy.c to sell items might cause problems down the road. Make a custom one. Try it in Python and C.  |
|
Back to top |
|
 |
Animate Dreams Gotta buy them all! (Consumer whore)

Age:37 Gender: Joined: May 01 2004 Posts: 821 Location: Middle Tennessee Offline
|
Posted: Thu Apr 12, 2007 6:06 pm Post subject: |
 |
|
|
|
Dr Brain wrote: | It's better to figure out monotone now, and save yourself many headaches later on. |
I've been meaning to ask, does this mean there won't be any more solid releases of AS3? Or is this just for in between? |
|
Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
Software by php BB © php BB Group Server Load: 12 page(s) served in previous 5 minutes.
|