Author Topic: Rallypoints [RELEASED v1.2, v2.3]  (Read 6320 times)

0 Members and 1 Guest are viewing this topic.

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 17
  • Posts: 904
  • Eufloria: Yes
Rallypoints [RELEASED v1.2, v2.3]
« on: July 20, 2010, 12:25:13 PM »
As pointed out by Annikk, the code in the functions

Code: [Select]
function ScreenDraw()

function OnMouseLeftDownScreen(x,y)

function OnMouseLeftUpScreen(x,y)

function OnAsteroidSelected(id)
   
goes BETWEEN LevelSetup and LevelLogic, not in either of them.



RELEASE v2.3

Added slider following mouse while LMB over slider depressed.
Changed numroids to equal the highest ID of an asteroid in the map. Numroids needs no changing, it is all done automatically.
Added dynamic calculation of numroids at the start of the map, and instructions on how to have it happen every cycle, if there are asteroids being created/destroyed.


RELEASE v1.2
Button/checks now relative to the screen, not the world. Should fix problems with Line 89, though might throw up more.
Changed the text at the start.
Added map info at the start of the file.
« Last Edit: February 02, 2011, 05:51:49 PM by Pilchard123 »

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: Rallypoints
« Reply #1 on: July 20, 2010, 12:27:47 PM »
Sweet !

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 17
  • Posts: 904
  • Eufloria: Yes
Re: Rallypoints [RELEASED v1.0]
« Reply #2 on: July 20, 2010, 08:48:30 PM »
Here 'tis! I think it's fairly self-explanatory, although I will make a cleaner version of the code if it's wanted. Not only is it a usable code, but it's also a demo level, too, to help you get used to the rallypoints and explain a few things. I suggest you play it, just to get the information out of it. There is no way to win or lose the demo level.

A bit more info that I didn't think to put in is that it will only call seedling from asteroids that YOU own, and will take every single seedling there until you disable rallying, even if they are born/picked afterwards, leaving your asteroids undefended. This is changeable in the code, but after the next patch to the game, I might be able to make it changeable in-game. Maybe.

Any bugs you find, post here, and I'll try to fix them.
« Last Edit: July 21, 2010, 08:58:02 PM by Pilchard123 »

Sniped50

  • Sapling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 97
  • Don't ask. About anything.
Re: Rallypoints [RELEASED v1.0]
« Reply #3 on: July 20, 2010, 09:18:30 PM »
Nice. It looks really cool, and, other than the issues you mentioned, it seems to work very well.

Of course, it needs a little tuning. Maybe stop the asteroid menu from closing when you click the box, because it happens to be technically outside the menu area. Or a small slider off to the side to say how many seedlings will be left on the other asteroids for defence. Or the ability to make an asteroid a rallypoint multiple times. Or even something to show that the selected asteroid is currently a rallypoint (like the box being filled), other than the swarm of seedlings surrounding it.

Constructive criticism only, folks.  ;)
"Sometimes, the simplest solutions work the best."
- Mythbusters

"But the complex solutions look prettier."
- Me

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 17
  • Posts: 904
  • Eufloria: Yes
Re: Rallypoints [RELEASED v1.0]
« Reply #4 on: July 20, 2010, 09:25:10 PM »
Maybe stop the asteroid menu from closing when you click the box, because it happens to be technically outside the menu area.
I don't think that's possible.

Or a small slider off to the side to say how many seedlings will be left on the other asteroids for defence.
Next game patch, that's one of the things I'll be doing. For now, there's nothing (practical) I can do.

Or the ability to make an asteroid a rallypoint multiple times.
What, the same one twice in a row?
I think I've got a fix, will try to put it in soon. I'm tired at the moment.

Or multiple rallypoints?
Possible. How is it decided how many to send to each asteroid?


Or even something to show that the selected asteroid is currently a rallypoint (like the box being filled), other than the swarm of seedlings surrounding it.
I think I can do this, too. Soon.

Alex

  • Administrator
  • Ent
  • *****
  • Thank You
  • -Given: 3
  • -Receive: 13
  • Posts: 1,035
Re: Rallypoints [RELEASED v1.0]
« Reply #5 on: July 21, 2010, 10:43:40 AM »
I'd kind of like to get it so that people can make stuff like this that can be layered over the whole game, not just individual levels. same for Annikk.exe's Infected AI, etc. I'll look into it.

Rudolf

  • Administrator
  • Old Oak
  • *****
  • Thank You
  • -Given: 4
  • -Receive: 13
  • Posts: 635
  • Euflorian Ambassador
    • Omni Systems Limited
  • Eufloria: Yes
Re: Rallypoints [RELEASED v1.0]
« Reply #6 on: July 21, 2010, 10:53:45 AM »
What Alex said. Imagine how cool it would be to have global mods to choose from. :-D
-----------------------------------------------------
Rudolf Kremers - Grand Poobah

http://www.omni-labs.com
http://www.rudolfkremers.com
http://rudolfkremers.tumblr.com/

AWS

  • Achiever
  • Arboreal Being
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 274
Re: Rallypoints [RELEASED v1.1]
« Reply #7 on: July 27, 2010, 01:08:51 AM »
i have a problem when i try to load the demo level.
it comes up with the error message about line 89, trying to call a nil value for the GetCameraZoom.

not sure how to rectify the problem...any help? id like to use it in my upcoming level so im keen to see it in all its glory.

thx.

PS - id like to be more involved in all this grand advancing thats going on these days. this game is just growing and growing and it bodes very well..a hearty congrats to one and all for keeping this game going.

AWS

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 17
  • Posts: 904
  • Eufloria: Yes
Re: Rallypoints [RELEASED v1.1]
« Reply #8 on: July 27, 2010, 09:26:24 AM »
Right at the moment, I'm on holiday and have no access to Eufloria. I'm currently using my dsi to type. Are you sure you've patched your game? I think GetCameraZoom() is only in 2.05.

AWS

  • Achiever
  • Arboreal Being
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 274
Re: Rallypoints [RELEASED v1.1]
« Reply #9 on: July 27, 2010, 01:28:38 PM »
thx for the response.
yeah. i have 205 release version. but i think most people do by now, yes, without any probs?
no worries mate, whenever youve got time and access, keep me posted about what you can see at your end about my problem.

aws

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: Rallypoints [RELEASED v1.1]
« Reply #10 on: July 28, 2010, 02:52:09 PM »
Can you post line 89 of the code?  A few lines before and after would be good too :>

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 17
  • Posts: 904
  • Eufloria: Yes
Re: Rallypoints [RELEASED v1.1]
« Reply #11 on: July 28, 2010, 04:59:54 PM »
That's what I was going to ask for too.

Check the line that says something like 'scale = GetCameraZoom()', it may be that I forgot the brackets, or something dopey like that.

If that doesn't work, then I have no idea at the moment. I'll be back home at the weekend, so I can be more useful then.

AWS

  • Achiever
  • Arboreal Being
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 274
Re: Rallypoints [RELEASED v1.1]
« Reply #12 on: July 30, 2010, 02:19:51 PM »
Can you post line 89 of the code?  A few lines before and after would be good too :>

hi guys -
this is lifted, as is, from the code...

function LevelDraw() -- draws box/button for switching rallypoint on or off
   scale = GetCameraZoom()
   xpos = -GetCameraX()
   ypos = -GetCameraY()
   DrawLine(xpos + (300)*scale, ypos + 300*scale, xpos + (350)*scale, ypos + (300)*scale, 0,0,0,0.99,0,0,0,0.99,3*scale) --draws top line of box
   DrawLine(xpos + (300)*scale, ypos + 350*scale, xpos + (350)*scale, ypos + (350)*scale, 0,0,0,0.99,0,0,0,0.99,3*scale) --draws bottom line of box
   DrawLine(xpos + (300)*scale, ypos + 300*scale, xpos + (300)*scale, ypos + (350)*scale, 0,0,0,0.99,0,0,0,0.99,3*scale) --draws left side of box
   DrawLine(xpos + (350)*scale, ypos + 300*scale, xpos + (350)*scale, ypos + (350)*scale, 0,0,0,0.99,0,0,0,0.99,3*scale) --draws right side of box
end


the camera zoom() is line 89.
now, i know sometimes it comes up with messages about a particular line not being finished, which then requires something like another 'end' further down the code. but the error message just says about line 89. anything more than that im not sure.

thanks foir looking. and i wonder why it is that the same code works for some but not others?


Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 17
  • Posts: 904
  • Eufloria: Yes
Re: Rallypoints [RELEASED v1.1]
« Reply #13 on: August 01, 2010, 09:46:39 PM »
I have no idea why this isn't working...

It works fine for me, but then I wrote it and tested with my copy. When did you buy Eufloria, and have you used every patch since then?

Alex/Rudolph - Would the v2.05 patch update a v1.0 version and make it perfect (exactly as v2.05 should be?)

AWS

  • Achiever
  • Arboreal Being
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 274
Re: Rallypoints [RELEASED v1.1]
« Reply #14 on: August 03, 2010, 06:18:02 PM »
I have no idea why this isn't working...

It works fine for me, but then I wrote it and tested with my copy. When did you buy Eufloria, and have you used every patch since then?

Alex/Rudolph - Would the v2.05 patch update a v1.0 version and make it perfect (exactly as v2.05 should be?)

well, all i know is that i got it in its original version and then updated straight to 2.04, then this most recent 'honourifics' 2.05 version. everything has worked without any issues at all.
so, im still at a loss as to why the code doesnt work for me. what does calling the camera zoom do for this rally point code exactly? ie, is it removeable?