Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Internal Commands

 
Post new topic   Reply to topic Printable version
 View previous topic  Regions Post :: Post limit ships  View next topic  
Author Message
corvey
Novice


Joined: Apr 02 2007
Posts: 40
Offline

PostPosted: Thu Apr 12, 2007 2:05 am    Post subject: Internal Commands Reply to topic Reply with quote

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.

icon_redface.gif
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Thu Apr 12, 2007 8:45 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
corvey
Novice


Joined: Apr 02 2007
Posts: 40
Offline

PostPosted: Thu Apr 12, 2007 10:11 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Animate Dreams
Gotta buy them all!
(Consumer whore)


Age:37
Gender:Gender:Male
Joined: May 01 2004
Posts: 821
Location: Middle Tennessee
Offline

PostPosted: Thu Apr 12, 2007 12:05 pm    Post subject: Reply to topic Reply with quote

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. biggrin.gif
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
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address MSN Messenger
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Thu Apr 12, 2007 2:00 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Thu Apr 12, 2007 3:19 pm    Post subject: Reply to topic Reply with quote

The thing is corvey did say buy.c in his original post, implying he already knew about that module. Maybe Dr Brain missed this causing corvey to write a mini-essay in response which then snowballed. Anyway...

I also assume the ?orbit command is used to go into orbit around a planet, which would then give you access to its resources (I don't know if GE allows landing too). You can add new commands with:
Code: Show/Hide
cmd->AddCommand(...); //(see cmdman.h for the parameters)
They can be added for the entire zone, or per-arena. Don't forget to unregister them when the module unloads or detaches.

Quote:
each number of the prize is associated with a function number
Could mean two things:
- You are talking about the large struct at the top of buy.c, that's just used to translate text to the prize number and setting name so asss can figure out the price.
- You think maybe each prize number is later on mapped to a function that does some more magical stuff. This is kinda true, but it happens client side, meaning you can't add more prizes. You can still add non-prize items/abilities, such as an ability that displays the current flag positions.
_________________
ss news
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Thu Apr 12, 2007 5:58 pm    Post subject: Reply to topic Reply with quote

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. icon_biggrin.gif
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Animate Dreams
Gotta buy them all!
(Consumer whore)


Age:37
Gender:Gender:Male
Joined: May 01 2004
Posts: 821
Location: Middle Tennessee
Offline

PostPosted: Thu Apr 12, 2007 6:06 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 18 page(s) served in previous 5 minutes.

phpBB Created this page in 0.405011 seconds : 32 queries executed (92.7%): GZIP compression disabled