Author Topic: Favorite Races  (Read 2946 times)

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
Favorite Races
« on: June 24, 2013, 12:35:22 AM »
This is a little plugin I whipped together to allow players to save player's favorite races (manually set), preventing them from having to constantly scroll through the changerace menu.

Commands:
sm_addfavrace: Adds your current race to your favorite race list.
sm_mngfavraces: Opens the menu to manage your favorite race list.
sm_favraces: Views your favorite race list.

A simple plugin overall, if you have any questions feel free to ask.

Source: https://github.com/necavi/War3Source-Favorite-Races
Latest Build: http://ci.0xf.org/job/Favorite-Races/lastStableBuild/
« Last Edit: June 24, 2013, 01:12:10 AM by Necavi »

Ownz

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2437
  • chmod -R 777 *
    • View Profile
    • OwnageClan
Re: Favorite Races
« Reply #1 on: June 24, 2013, 10:03:40 AM »
not_bad.jpg

y not throw it on master

idea: i imagine where changerace menu first option is to  take u to favorate races menu, and from there u can have menu options to add or remove fave races

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
Re: Favorite Races
« Reply #2 on: June 24, 2013, 10:12:58 AM »
That's what I was thinking, this is more of a proof of concept, although everything does seem to work properly.

iceman

  • Full Member
  • ***
  • Posts: 220
    • View Profile
Re: Favorite Races
« Reply #3 on: July 16, 2013, 04:10:57 PM »
Just grabbed the latest version still getting database errors.
L 07/16/2013 - 18:07:08: SourceMod error session started
L 07/16/2013 - 18:07:08: Info (map "ctf_2fort") (file "errors_20130716.log")
L 07/16/2013 - 18:07:08: [w3s\War3Source_Addon_FavRace.smx] Error creating player table. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UNIQUE KEY(`player_steam`))' at line 1.

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
Re: Favorite Races
« Reply #4 on: July 16, 2013, 04:13:55 PM »
Runs fine on my database server, can you check to make sure that it wasn't partially created before or something like that?

iceman

  • Full Member
  • ***
  • Posts: 220
    • View Profile
Re: Favorite Races
« Reply #5 on: July 16, 2013, 04:32:15 PM »
No i don't see that table anywhere.

iceman

  • Full Member
  • ***
  • Posts: 220
    • View Profile
Re: Favorite Races
« Reply #6 on: July 16, 2013, 06:00:04 PM »
Yea i just dumped the precompiled plugin on a diff server and database same error.

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
Re: Favorite Races
« Reply #7 on: July 16, 2013, 06:02:31 PM »
Odd, I'll look into it in a bit.

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
Re: Favorite Races
« Reply #8 on: July 19, 2013, 08:00:32 PM »
Sorry, haven't had a chance to fix it recently, should be a quick and easy one though, it is basically SQL. (and wouldn't be necessary if War3Source didn't have such TERRIBLE SQL)

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
Re: Favorite Races
« Reply #9 on: July 19, 2013, 08:13:32 PM »
Submit a pull request