Note: This forum is merely an archive. It is no longer possible to register or post. - StackOverflow
New Ace of Spades Forums: http://buildandshoot.com/

WIN A PRIZE!! mapping compitition

All things voxel.

WIN A PRIZE!! mapping compitition

Postby jojoestinky » Mon Aug 06, 2012 10:33 pm

OK we have a winner!
Last edited by jojoestinky on Tue Aug 07, 2012 1:29 am, edited 1 time in total.
User avatar
jojoestinky
[C.H] Member
 
Posts: 171
Joined: Sat Jul 21, 2012 9:26 am

Re: WIN A PRIZE!! mapping compitition

Postby jojoestinky » Mon Aug 06, 2012 10:56 pm

And we already have a WINNER!


Thanks so much to Komrade color!!
User avatar
jojoestinky
[C.H] Member
 
Posts: 171
Joined: Sat Jul 21, 2012 9:26 am

Re: WIN A PRIZE!! mapping compitition

Postby MissionCo » Mon Aug 06, 2012 11:04 pm

Could you share the map? I've had troubles with this too.
User avatar
MissionCo
Member
 
Posts: 29
Joined: Fri Jul 20, 2012 8:14 pm
Location: One your Screen

Re: WIN A PRIZE!! mapping compitition

Postby jojoestinky » Tue Aug 07, 2012 12:04 am

Code: Select all
name = 'SMASH FORTS'

version = '1.0'

author = 'Jason Bonham AKA JoJoe Stinky CC 2012'

description = 'smashforts is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License'



from pyspades.constants import *
from pyspades.server import ServerConnection

def get_entity_location(team, entity_id):
    if entity_id == BLUE_FLAG:
        z = team.protocol.map.get_z(0, 0)
        return (0, 0, z)
    if entity_id == GREEN_FLAG:
        z = team.protocol.map.get_z(0, 0)
        return (0, 0, z)
    if entity_id == BLUE_BASE:
        z = team.protocol.map.get_z(0, 0)
        return (0, 0, z)
    if entity_id == GREEN_BASE:
        z = team.protocol.map.get_z(0, 0)
        return (0, 0, z)
      
def get_spawn_location(connection):
    if connection.team is connection.protocol.blue_team:
        return (236, 150, 40)
    if connection.team is connection.protocol.green_team:
        return (236, 380, 40)


That seems to work pretty good :)
User avatar
jojoestinky
[C.H] Member
 
Posts: 171
Joined: Sat Jul 21, 2012 9:26 am

Re: WIN A PRIZE!! mapping compitition

Postby MissionCo » Tue Aug 07, 2012 1:58 am

jojoestinky wrote:That seems to work pretty good :)

Thanks!
User avatar
MissionCo
Member
 
Posts: 29
Joined: Fri Jul 20, 2012 8:14 pm
Location: One your Screen

Re: WIN A PRIZE!! mapping compitition

Postby jojoestinky » Tue Aug 07, 2012 8:08 pm

Well, this script does not work either.
Very sorry, but there will be no more free gifts from me to the community until after the release of 1.0.

All of my maps have always been released licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License, so you guys are welcome to fix or modify them if you want to.


I will be making test content , and running some game servers to give you guys new stuff top play with. So stay tuned. A select few of you will get a taste of the future :)

I am very sorry i can not share with everybody. As some of you know i am very ill. i do not have much time left. and every second wasted , is a second i could have spent doing productive things.

The past 5 day I could have had at least 5 new maps for you guys. (i also could have saved $50 on this stupid contest)
User avatar
jojoestinky
[C.H] Member
 
Posts: 171
Joined: Sat Jul 21, 2012 9:26 am

Re: WIN A PRIZE!! mapping compitition

Postby BuffetOfLies » Wed Aug 08, 2012 1:25 pm

Apparently I missed something here. Sorry to hear you're ill, jojoe. :/
User avatar
BuffetOfLies
Moderator
 
Posts: 213
Joined: Tue Jan 17, 2012 3:40 pm

Re: WIN A PRIZE!! mapping compitition

Postby MissionCo » Wed Aug 08, 2012 1:37 pm

"]Example for get_spawn_location() on how to set up a list of spawns

Code: Select all
import random

name = 'BestMap2' version = '1.0' author = 'mat^2' description = 'BEST MAP EVER'

# this allows setting up spawns inside buildings etc. even for maps where # building/destruction is allowed

# example spawns spawn_locations_blue = [ (337, 171, 44), (337, 171, 44) ]

spawn_locations_green = [ (176, 339, 48), (176, 339, 48) ]

def get_spawn_location(connection): if connection.team is connection.protocol.blue_team: x, y, z = random.choice(spawn_locations_blue) elif connection.team is connection.protocol.green_team: x, y, z = random.choice(spawn_locations_green) z -= 2.4 # magic numbers x += 0.5 y += 0.5 if connection.protocol.map.get_z(x, y) <= z: # allows spawning lower if the ground is destroyed return x, y, z else: return x, y, connection.protocol.map.get_z(x, y)

"
This worked for my needs. I put in 32 spawn points and as far as I know they all work.
User avatar
MissionCo
Member
 
Posts: 29
Joined: Fri Jul 20, 2012 8:14 pm
Location: One your Screen

Re: WIN A PRIZE!! mapping compitition

Postby Dany0 » Wed Aug 08, 2012 4:45 pm

We sent him that one when we made the example, he did something wrong and couldn't get it to work. Then blamed the script.
Image
User avatar
Dany0
Member
 
Posts: 358
Joined: Mon Dec 26, 2011 7:29 pm

Re: WIN A PRIZE!! mapping compitition

Postby MissionCo » Wed Aug 08, 2012 6:22 pm

...............
Last edited by MissionCo on Fri Aug 10, 2012 3:41 am, edited 1 time in total.
User avatar
MissionCo
Member
 
Posts: 29
Joined: Fri Jul 20, 2012 8:14 pm
Location: One your Screen

Re: WIN A PRIZE!! mapping compitition

Postby jojoestinky » Wed Aug 08, 2012 9:58 pm

Dany0 wrote:We sent him that one when we made the example, he did something wrong and couldn't get it to work. Then blamed the script.

You sent me nothing.

The script you posted had bugs in it . I was using a broken script to begin with.

i asked for a mapfile to prove it worked, and you did nothing .

I finally got some help from HOMPS. I got his script working in a matter of a few seconds.

Why? Because there where no bugs in it. He was also nice enough to walk me through the script so i could understand exactly what was going on, and how to tweak it. We sat there for about 10 minuets learning how to do both point and rectangle spawns. Now i can do it without any help.

It was not hard at all, All i needed was a working example .
User avatar
jojoestinky
[C.H] Member
 
Posts: 171
Joined: Sat Jul 21, 2012 9:26 am

Re: WIN A PRIZE!! mapping compitition

Postby joshsunn » Sat Oct 06, 2012 6:18 am

keep up the good work Great work.


nokia mobiles
joshsunn
Member
 
Posts: 1
Joined: Sat Oct 06, 2012 5:44 am


Return to Mapping



Who is online

Users browsing this forum: No registered users and 1 guest

cron