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
Per Ship Weapon Settings

 
Post new topic   Reply to topic Printable version
 View previous topic  Alias module? Post :: Post command conf  View next topic  
Author Message
z.alpha+
Novice


Joined: Oct 10 2006
Posts: 32
Offline

PostPosted: Thu Oct 12, 2006 4:30 pm    Post subject: Per Ship Weapon Settings Reply to topic Reply with quote

I've been trolling the web looking for ASSS module code for examples and the only thing i've really found is Smog's site and a few hyperspace mods on the wiki site. Are there any more mod depositories for asss mod's? Everything on SSDL looks like a mirror of smog's site.

At any rate, I'm looking for a way to have per player weapon settings, much like Hyperspace, in which you have to level up / purchase weapons.

I understand the basics of ASSS now, working with interfaces, creating callbacks etc. There are somethings that are eluding me, like creating custom packets without getting a checksum error, etc. At any rate, I was hoping to get more exampled, or pre-existing modules, so I could study them and see how they work.

Is there a way to have different settings such as multifire angles, bullet life time, bullet damage level, etc per player, or is this handled client side, and therefore only limited to different ship hulls.

Also, I was wondering if someone had some quick example code of writing to and from a mysql database. I've already connected to the mysql through asss, but I couldn't find anything that provided a pre-built interface for executing SQL statement to and from mysql.

Any help you regulars could throw my way would be appreciated. I've been dabbling with the code for a few days, and i'm wanting to start creating some exotic modules and was hoping to get a good boost in my learning curve.
Back to top
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Thu Oct 12, 2006 5:34 pm    Post subject: Reply to topic Reply with quote

I'm not really qualified to answer all of your questions, but I can say a few things.

First of all, it's Smong. icon_razz.gif Anyway, you probably won't have to use mysql for this, you should be able to do just fine with persistent data (see the ASSS developer's guide).

Quote:
creating custom packets without getting a checksum error

What are you trying to send?

Quote:
Is there a way to have different settings such as multifire angles, bullet life time, bullet damage level, etc per player, or is this handled client side, and therefore only limited to different ship hulls.

Some of this could probably be accomplished with per-player settings, but I'm no expert on this, so I'm gonna wait for some one else to answer. icon_smile.gif

Just read through the developer's guide and look at some of the modules that come with ASSS (not the core stuff, but the cool stuff like the fg_ modules).

Thanks for the polite and easily understandable request.
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
z.alpha+
Novice


Joined: Oct 10 2006
Posts: 32
Offline

PostPosted: Thu Oct 12, 2006 6:39 pm    Post subject: Reply to topic Reply with quote

i'm going to be using mysql to store some long term data, that i need to be very flexible with (ie , export to php, tab-delminited lists, etc). Mostly general web stuff, of course. In the long-term mysql is going to allow me to have a better handle on the data.

As far as creating a packet, i was messing around with the fake interface, and was needing to send some player position data, but was getting the badlen checksum error.

I was using the autoturret module as a learning resource, but could never quite get the packet stuff in place, which is pretty important because some of the modules i'm laying out now is going to require some custom packet work.

anyway thanks for the repsonse, i'll check out the fg_[..] modules, i don't think i've looked over them yet.

btw, sorry smong if i misspelled your name, there isn't much i don't misspell.
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Thu Oct 12, 2006 8:37 pm    Post subject: Reply to topic Reply with quote

You can get a lot of modules in the ASSS Custom Code forum. As for the fake thing, isn't there a fakePosition function in the interface?
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Fri Oct 13, 2006 5:25 am    Post subject: Reply to topic Reply with quote

I'm not sure how you can go wrong if you're working off the autoturret code.

If you go to the biller section on my site and download pocob2 there should be examples in there that use asss's mysql module.

It is true some (weapon) things are clientside. You need to understand how the game works to know what happens where, it doesn't look like you do. Just ask more specifically and we can give you an answer. To start you off multifire angle, weapon speed and weapon alive time are done client side. This doesn't leave you with much, think of per-player settings as just another way of granting prizes to people.

Weapon damage level is clientside too, but can be used for "half shields". I'm attaching a module called xp which was my attempt at a UWC3 (ultimate warcraft 3, a mod for cs1.6) mod for SS. There is a skill called "leather skin" that gradually reduces the amount of damage you received depending on how "leveled up" you are. It's commented out in the code since you can't do per-player settings from python.
_________________
ss news




module (136)

xp.py - 17.5 KB
File downloaded or viewed 24 time(s)

arena

arena-xp.zip - 4.91 KB
File downloaded or viewed 8 time(s)
Back to top
View users profile Send private message Add User to Ignore List Visit posters website 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: Fri Oct 13, 2006 7:17 am    Post subject: Reply to topic Reply with quote

For the most part, anything I don't change in Hyperspace shouldn't be changed. Bullet alive time and multifire angle are big no-no's. Bullet damage CAN be changed per player, but it changes it for all ships.
_________________
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
z.alpha+
Novice


Joined: Oct 10 2006
Posts: 32
Offline

PostPosted: Fri Oct 13, 2006 9:25 am    Post subject: Reply to topic Reply with quote

fyi: ( i think most people reading this already know, but for the curious and uninformed.)

the interface for the database is located at:

src/include/reldb.h
Back to top
View users profile Send private message Add User to Ignore List
z.alpha+
Novice


Joined: Oct 10 2006
Posts: 32
Offline

PostPosted: Fri Oct 13, 2006 12:17 pm    Post subject: Reply to topic Reply with quote

Bak wrote:
isn't there a fakePosition function in the interface?


not that i see

fake.h:

Code: Show/Hide

/* dist: public */

#ifndef __FAKE_H
#define __FAKE_H


#define I_FAKE "fake-1"

typedef struct Ifake
{
   INTERFACE_HEAD_DECL
   /* pyint: use */

   Player * (*CreateFakePlayer)(const char *name, Arena *arena, int ship, int freq);
   /* pyint: string, arena, int, int -> player */
   int (*EndFaked)(Player *p);
   /* pyint: player -> int */
} Ifake;


#endif


am i missing something here?
Back to top
View users profile Send private message Add User to Ignore List
z.alpha+
Novice


Joined: Oct 10 2006
Posts: 32
Offline

PostPosted: Fri Oct 13, 2006 12:34 pm    Post subject: Reply to topic Reply with quote

the fakeposition is in the game interface.....
Back to top
View users profile Send private message Add User to Ignore List
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: 42 page(s) served in previous 5 minutes.

phpBB Created this page in 0.595994 seconds : 35 queries executed (95.0%): GZIP compression disabled