Author |
Message |
CypherJF I gargle nitroglycerin
Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Fri Jan 04, 2008 9:04 pm Post subject: |
|
|
|
|
BTW, I have no problem compiling the HS modules under Windows. _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:31 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Fri Jan 04, 2008 10:55 pm Post subject: |
|
|
|
|
even I got it to work ....With clear instructions how to from cypherjf |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Mon Mar 03, 2008 8:49 pm Post subject: |
|
|
|
|
Uploaded new version.
Lots of bug fixes. Ammo works. Probably some new properties. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:31 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Mon Mar 03, 2008 9:34 pm Post subject: |
|
|
|
|
in the first post? |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Mar 04, 2008 8:40 am Post subject: |
|
|
|
|
Yes. |
|
Back to top |
|
|
Acer1001 Newbie
Joined: Jun 13 2008 Posts: 20 Offline
|
Posted: Fri Jul 11, 2008 4:39 pm Post subject: |
|
|
|
|
I tried adding this in and when i tried to start asss it just opened and closed quickly. Any reason why it would be doing that? |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Fri Jul 11, 2008 8:31 pm Post subject: |
|
|
|
|
Probably something isn't loading right. Open up a command window and start it in there. That should let you know what's going wrong.
The log file might also have useful information. |
|
Back to top |
|
|
Acer1001 Newbie
Joined: Jun 13 2008 Posts: 20 Offline
|
Posted: Sat Jul 12, 2008 11:19 pm Post subject: |
|
|
|
|
I get this when i open it from a command prompt: "Loading modules...
Unrecoverable error (5): Error in modules.conf: Can't open file 'conf/modules.conf for reading" |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sat Jul 12, 2008 11:37 pm Post subject: |
|
|
|
|
You were running asss from the wrong directory.
in game update: trying to use the linux binaries on windows. |
|
Back to top |
|
|
Aquarius Newbie
Age:36 Gender: Joined: Oct 02 2007 Posts: 12 Location: Lehighton Offline
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Thu Dec 17, 2009 8:03 am Post subject: |
|
|
|
|
That version was built against an older version of the core. Grab a newer copy from here: http://bitbucket.org/drbrain/hscore/
If you don't have mercurial, you can use the get source button in the upper right hand corner of the website to download a zip or tar file. |
|
Back to top |
|
|
KrynetiX Seasoned Helper
Gender: Joined: Jan 06 2003 Posts: 137 Location: Poconos Offline
|
Posted: Fri Dec 18, 2009 4:47 am Post subject: |
|
|
|
|
during make
It was first missing selfpos.h which I couldn't find at http://bitbucket.org/drbrain/hscore/
I found it here http://forums.minegoboom.com/viewtopic.php?t=8092&highlight=selfpos+h
ran make again, now missing formula.h, but i don't really want to hunt these files down and mix up versions
It seems like it might just be missing util package from the thread above
So adding formula.h and selfpos.h and running make gave me a problem with rewards.c
hscore/hscore_rewards.c:84: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token
hscore/hscore_rewards.c:94: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token
hscore/hscore_rewards.c: In function ?update_flag_rewards?:
hscore/hscore_rewards.c:221: error: ?FormulaVariable? undeclared (first use in this function)
hscore/hscore_rewards.c:221: error: (Each undeclared identifier is reported only once
hscore/hscore_rewards.c:221: error: for each function it appears in.)
hscore/hscore_rewards.c:221: error: expected ?;? before ?arena_var?
hscore/hscore_rewards.c:222: error: ?arena_var? undeclared (first use in this function)
hscore/hscore_rewards.c:223: error: ?VAR_TYPE_ARENA? undeclared (first use in this function)
hscore/hscore_rewards.c:225: error: ?freq_var? undeclared (first use in this function)
hscore/hscore_rewards.c:226: error: ?VAR_TYPE_FREQ? undeclared (first use in this function)
hscore/hscore_rewards.c:235: warning: passing argument 3 of ?formula->EvaluateFormulaInt? makes integer from pointer without a cast
hscore/hscore_rewards.c:235: note: expected ?int? but argument is of type ?void *?
hscore/hscore_rewards.c:235: error: too many arguments to function ?formula->EvaluateFormulaInt?
hscore/hscore_rewards.c:245: warning: passing argument 3 of ?formula->EvaluateFormulaInt? makes integer from pointer without a cast
hscore/hscore_rewards.c:245: note: expected ?int? but argument is of type ?void *?
hscore/hscore_rewards.c:245: error: too many arguments to function ?formula->EvaluateFormulaInt?
hscore/hscore_rewards.c:255: warning: passing argument 3 of ?formula->EvaluateFormulaInt? makes integer from pointer without a cast
hscore/hscore_rewards.c:255: note: expected ?int? but argument is of type ?void *?
hscore/hscore_rewards.c:255: error: too many arguments to function ?formula->EvaluateFormulaInt?
hscore/hscore_rewards.c:265: warning: passing argument 3 of ?formula->EvaluateFormulaInt? makes integer from pointer without a cast
hscore/hscore_rewards.c:265: note: expected ?int? but argument is of type ?void *?
hscore/hscore_rewards.c:265: error: too many arguments to function ?formula->EvaluateFormulaInt?
hscore/hscore_rewards.c: In function ?calculateKillExpReward?:
hscore/hscore_rewards.c:405: error: ?FormulaVariable? undeclared (first use in this function)
hscore/hscore_rewards.c:405: error: expected ?;? before ?killer_var?
hscore/hscore_rewards.c:406: error: ?killer_var? undeclared (first use in this function)
hscore/hscore_rewards.c:407: error: ?VAR_TYPE_PLAYER? undeclared (first use in this function)
hscore/hscore_rewards.c:409: error: ?killed_var? undeclared (first use in this function)
hscore/hscore_rewards.c:412: error: ?bounty_var? undeclared (first use in this function)
hscore/hscore_rewards.c:413: error: ?VAR_TYPE_DOUBLE? undeclared (first use in this function)
hscore/hscore_rewards.c:415: error: ?arena_var? undeclared (first use in this function)
hscore/hscore_rewards.c:416: error: ?VAR_TYPE_ARENA? undeclared (first use in this function)
hscore/hscore_rewards.c:428: warning: passing argument 3 of ?formula->EvaluateFormulaInt? makes integer from pointer without a cast
hscore/hscore_rewards.c:428: note: expected ?int? but argument is of type ?void *?
hscore/hscore_rewards.c:428: error: too many arguments to function ?formula->EvaluateFormulaInt?
hscore/hscore_rewards.c:440: warning: passing argument 3 of ?formula->EvaluateFormulaInt? makes integer from pointer without a cast
hscore/hscore_rewards.c:440: note: expected ?int? but argument is of type ?void *?
hscore/hscore_rewards.c:440: error: too many arguments to function ?formula->EvaluateFormulaInt?
hscore/hscore_rewards.c: In function ?calculateKillMoneyReward?:
hscore/hscore_rewards.c:462: error: ?FormulaVariable? undeclared (first use in this function)
hscore/hscore_rewards.c:462: error: expected ?;? before ?killer_var?
hscore/hscore_rewards.c:463: error: ?killer_var? undeclared (first use in this function)
hscore/hscore_rewards.c:464: error: ?VAR_TYPE_PLAYER? undeclared (first use in this function)
hscore/hscore_rewards.c:466: error: ?killed_var? undeclared (first use in this function)
hscore/hscore_rewards.c:469: error: ?bounty_var? undeclared (first use in this function)
hscore/hscore_rewards.c:470: error: ?VAR_TYPE_DOUBLE? undeclared (first use in this function)
hscore/hscore_rewards.c:472: error: ?arena_var? undeclared (first use in this function)
hscore/hscore_rewards.c:473: error: ?VAR_TYPE_ARENA? undeclared (first use in this function)
hscore/hscore_rewards.c:485: warning: passing argument 3 of ?formula->EvaluateFormulaInt? makes integer from pointer without a cast
hscore/hscore_rewards.c:485: note: expected ?int? but argument is of type ?void *?
hscore/hscore_rewards.c:485: error: too many arguments to function ?formula->EvaluateFormulaInt?
hscore/hscore_rewards.c:497: warning: passing argument 3 of ?formula->EvaluateFormulaInt? makes integer from pointer without a cast
hscore/hscore_rewards.c:497: note: expected ?int? but argument is of type ?void *?
hscore/hscore_rewards.c:497: error: too many arguments to function ?formula->EvaluateFormulaInt?
hscore/hscore_rewards.c: In function ?getPeriodicPoints?:
hscore/hscore_rewards.c:711: error: ?FormulaVariable? undeclared (first use in this function)
hscore/hscore_rewards.c:711: error: expected ?;? before ?arena_var?
hscore/hscore_rewards.c:712: error: ?arena_var? undeclared (first use in this function)
hscore/hscore_rewards.c:713: error: ?VAR_TYPE_ARENA? undeclared (first use in this function)
hscore/hscore_rewards.c:715: error: ?freq_var? undeclared (first use in this function)
hscore/hscore_rewards.c:716: error: ?VAR_TYPE_FREQ? undeclared (first use in this function)
hscore/hscore_rewards.c:719: error: ?flags_var? undeclared (first use in this function)
hscore/hscore_rewards.c:720: error: ?VAR_TYPE_DOUBLE? undeclared (first use in this function)
hscore/hscore_rewards.c:732: warning: passing argument 3 of ?formula->EvaluateFormulaInt? makes integer from pointer without a cast
hscore/hscore_rewards.c:732: note: expected ?int? but argument is of type ?void *?
hscore/hscore_rewards.c:732: error: too many arguments to function ?formula->EvaluateFormulaInt?
hscore/hscore_rewards.c:742: warning: passing argument 3 of ?formula->EvaluateFormulaInt? makes integer from pointer without a cast
hscore/hscore_rewards.c:742: note: expected ?int? but argument is of type ?void *?
hscore/hscore_rewards.c:742: error: too many arguments to function ?formula->EvaluateFormulaInt?
hscore/hscore_rewards.c: In function ?MM_hscore_rewards?:
hscore/hscore_rewards.c:1134: error: ?Iformula? has no member named ?RegPlayerProperty?
hscore/hscore_rewards.c:1134: error: ?player_exp_callback? undeclared (first use in this function)
hscore/hscore_rewards.c:1135: error: ?Iformula? has no member named ?RegPlayerProperty?
hscore/hscore_rewards.c:1135: error: ?player_money_callback? undeclared (first use in this function)
hscore/hscore_rewards.c:1141: error: ?Iformula? has no member named ?UnregPlayerProperty?
hscore/hscore_rewards.c:1142: error: ?Iformula? has no member named ?UnregPlayerProperty?
make: *** [../build/hscore_rewards.o] Error 1
|
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Fri Dec 18, 2009 8:05 am Post subject: |
|
|
|
|
Sorry, I completely forgot about hs_util. Grab the latest copy from http://bitbucket.org/drbrain/hs_util/ and put it into hs_util in src/
"make clean", and "make" should do the trick after that. |
|
Back to top |
|
|
KrynetiX Seasoned Helper
Gender: Joined: Jan 06 2003 Posts: 137 Location: Poconos Offline
|
Posted: Fri Dec 18, 2009 4:09 pm Post subject: |
|
|
|
|
edit: solved
Edit: it all compiled fine (except for these strange lines of make output)
at the very beginning:
jess@jess-desktop:~/Desktop/as3/src$ make
Makefile:114: ../build/deps.mk: No such file or directory
|
and towards the end:
warning: I_ARENAPLACE::Place: guessing arena from player argument
warning: CB_SET_BANNER: guessing arena from player argument
warning: I_CAPMAN::HasCapability: guessing arena from player argument
warning: I_CAPMAN::HigherThan: guessing arena from player argument
warning: CB_CHATMSG: guessing arena from player argument
warning: CB_SHIPFREQCHANGE: guessing arena from player argument
warning: CB_SPAWN: guessing arena from player argument
warning: CB_SAFEZONE: guessing arena from player argument
warning: CB_GREEN: guessing arena from player argument
warning: CB_ATTACH: guessing arena from player argument
warning: CB_CROWNCHANGE: guessing arena from player argument |
giving run/asss a go loads all core modules, proceeds to load hscore_myql,database,money, and fails at items:
I <cmod> loading C module 'hscore_items' from 'hscore'
E <cmod> error loading module 'hscore_items'
Unrecoverable error (5): Error in loading module 'hscore:hscore_items'
|
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Fri Dec 18, 2009 5:59 pm Post subject: |
|
|
|
|
Player capabilities:
cmd_buy
cmd_sell
cmd_ships
cmd_shipstatus
cmd_shipitems
cmd_shipinfo
cmd_resetyesiknowwhatimdoing
cmd_iteminfo
cmd_money
privcmd_give
privcmd_showmoney
privcmd_showexp
cmd_killmessages
cmd_bountytype
cmd_storeinfo
|
Sysop:
cmd_reloaditems
cmd_storeall
cmd_grantitem
privcmd_grantitem
|
Mod:
privcmd_ships
privcmd_shipstatus
privcmd_shipitems
cmd_grant
privcmd_grant
cmd_grantexp
privcmd_grantexp
cmd_setmoney
privcmd_setmoney
cmd_setexp
privcmd_setexp
|
|
|
Back to top |
|
|
Aquarius Newbie
Age:36 Gender: Joined: Oct 02 2007 Posts: 12 Location: Lehighton Offline
|
Posted: Fri Dec 18, 2009 9:30 pm Post subject: |
|
|
|
|
I understand most of the data base except item_events and item_properties.
Can you explain these rows? |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Fri Dec 18, 2009 10:39 pm Post subject: |
|
|
|
|
Item properties is the easy one:
item_id corresponds to the id in the item table
name corresponds to the name of the property (e.g. thrust)
value is the +1 or -5 or whatever
absolute is if the value should override the ship default (absolute properties are displayed as an = in ?iteminfo)
ignore_count means that the value is unaffected by how many copies of the item you have.
id is just a unique way to address that row, and can be left NULL during creation.
Item events:
event is the name of the event (e.g. bullet)
action is an integer corresponding to the action (see later)
data depends on the action
message is a message sent to the player during the action
The action #s can be found in hscore_types.h near the top. They start from zero and count up. So ACTION_PRIZE is 3, and uses the data field as the prize #.
You don't need events to create most items, thankfully. |
|
Back to top |
|
|
KrynetiX Seasoned Helper
Gender: Joined: Jan 06 2003 Posts: 137 Location: Poconos Offline
|
Posted: Fri Dec 18, 2009 11:06 pm Post subject: |
|
|
|
|
I'm a bit confused. How would I for example make an item that prizes 500 bounty.
Edit: Also,
how would I make a simple +1 bomb level item?
Does absolute mean that warbird:initial/maxbombs can =1 in arena.conf but the warbird who bought it will still go up to lvl2?
As for ships_allowed, do i take 1,2, 4, 8, 16, 32, 64, 128 and add them all together making the value 255 if i want all ships to have access to the item? (255 seems to only allow warbird) |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
|
Back to top |
|
|
KrynetiX Seasoned Helper
Gender: Joined: Jan 06 2003 Posts: 137 Location: Poconos Offline
|
Posted: Sat Dec 19, 2009 3:25 pm Post subject: |
|
|
|
|
I'd like to see the database settings for an item that prizes the player +1 gun level (override arena settings) and saves it to his ship. And database settings for an item that prizes the player 50 greens just one time. |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sun Dec 20, 2009 11:04 am Post subject: |
|
|
|
|
I haven't tested these, but they should do what you want:
+----+-------------+-------------------+------------------+-----------+------------+--------------+---------------+-----+-------------+------+------------+----------+--------------+-------------+
| id | name | short_description | long_description | buy_price | sell_price | exp_required | ships_allowed | max | delay_write | ammo | needs_ammo | min_ammo | affects_sets | resend_sets |
+----+-------------+-------------------+------------------+-----------+------------+--------------+---------------+-----+-------------+------+------------+----------+--------------+-------------+
| 1 | Pulse Laser | Basic armament | | 500 | 250 | 0 | 255 | 1 | 0 | 0 | 0 | 0 | 1 | 1 |
| 2 | Prizer | Prizes 500 | | 500 | 250 | 0 | 255 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
+----+-------------+-------------------+------------------+-----------+------------+--------------+---------------+-----+-------------+------+------------+----------+--------------+-------------+
|
+---------+---------------+-------+----------+--------------+----+
| item_id | name | value | absolute | ignore_count | id |
+---------+---------------+-------+----------+--------------+----+
| 1 | gunlevel | 1 | 0 | 0 | 1 |
+---------+---------------+-------+----------+--------------+----+
|
+---------+-------------+--------+------+-------------------------------------------------------------------------------------------+-----+
| item_id | event | action | data | message | id |
+---------+-------------+--------+------+-------------------------------------------------------------------------------------------+-----+
| 2 | add | 1 | 1 | | 1 |
| 2 | add | 13 | 500 | | 2 |
+---------+-------------+--------+------+-------------------------------------------------------------------------------------------+-----+
|
The 1,1 removes the item when it's added, and the 13,500 adds 500 bounty to the player. |
|
Back to top |
|
|
KrynetiX Seasoned Helper
Gender: Joined: Jan 06 2003 Posts: 137 Location: Poconos Offline
|
Posted: Sun Dec 20, 2009 2:16 pm Post subject: |
|
|
|
|
The gun doesn't upgrade until a shipreset occurs.
And the bounty only prizes bounty, and none of the prizes that come with the bounty. I find that kind of strange. |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sun Dec 20, 2009 4:04 pm Post subject: |
|
|
|
|
Did you enter the affects_sets and resend_sets on the gun item? Having those as 0 would prevent it from setting them immediately.
As for the prize, I'm not sure I ever added a random prize action (I never had a need for it). It's easy to tell it to give the person a specific prize. You could easily tell it to give someone 50 multiprizes, for example. If you've got your heart set on 500 random prizes, though, it could be added with a small amount of programming. |
|
Back to top |
|
|
Hakaku Server Help Squatter
Joined: Apr 07 2006 Posts: 299 Location: Canada Offline
|
Posted: Sun Dec 20, 2009 4:05 pm Post subject: |
|
|
|
|
Could it be that your settings are configured so that you can't prize anything when picking up bounty? If so, then it would also affect regular prizing.
edit: ignore me, Dr Brain answered |
|
Back to top |
|
|
|