aliens

Author Topic: Battlescape development  (Read 290642 times)

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Battlescape development
« Reply #360 on: November 06, 2012, 08:39:30 am »
using the throw calculation for the trajectory works, and the plasma projectile sprite can stand in for the green blob in the pck (for now) but you gotta make sure the throw calculation checks the tile below the source of the projectile as well, or stairs/ramps cause crashes, i wouldn't worry about the pre-spit drop-to-ground animation, it wasn't in the original, so we can live without it until we make a "pre-fire" state for it.

just my two cents.

Offline Daiky

  • Battlescape Programmer
  • Administrator
  • Commander
  • *****
  • Posts: 904
    • View Profile
Re: Battlescape development
« Reply #361 on: November 06, 2012, 12:26:52 pm »
yup, it works now. I did a few things differently as in your branch: I introduced two unit variables for the zombie/chryssalid handling (I think you wrote something like that in your comments as a todo), so they are not hardcoded to the units "chryssalid" and "zombie".
Also the celatid spit will become a variable "arcTrajectory" which can be used for any weapon. (if you set this to true on the rocket launcher, you got a grenade launcher ;) )
I merged your melee AI, which seems to work OK. I also merged in a few other bits, like the number of aliens depending on difficulty level.

Offline Daiky

  • Battlescape Programmer
  • Administrator
  • Commander
  • *****
  • Posts: 904
    • View Profile
Re: Battlescape development
« Reply #362 on: November 09, 2012, 09:18:31 pm »
A lot of code, like the drawing routines of the additional units, from Warboy is implemented. It should include chryssalids, zombies, celatid, silacoid,...
Also the new A* pathfinding algorithm from karvanit (https://github.com/SupSuper/OpenXcom/pull/158) has been implemented.
Thanks guys. We are getting closer to a fully working (hopefully soon bugfree) battlescape... :)


edit: I believe the chryssalids are currently making a lot of noise :p I'm working on it.
« Last Edit: November 09, 2012, 09:27:39 pm by Daiky »

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Battlescape development
« Reply #363 on: November 09, 2012, 11:38:16 pm »
glad to see you included the left handedness/dual wielding stuff too :D

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Battlescape development
« Reply #364 on: November 10, 2012, 12:52:07 am »
kinda off-topic or at least off-recent-topic: I just tried the "inverted" RMB-scrolling for the first time, and now I see why this feels odd to you all: it IS odd, the way it is now.

the way I was thinking about it would have involved the cursor moving with the landscape, truly "dragging" it.

the problem with the way it works now (in both "normal" and "inverted" mode) is that this implementation introduces a mouse movement that isn't parallel to the cursor movement, which will always lead to a break in "calibration", which means it forces you to lift the mouse up and re-position it to have a comfortable interface again.

Offline Daiky

  • Battlescape Programmer
  • Administrator
  • Commander
  • *****
  • Posts: 904
    • View Profile
Re: Battlescape development
« Reply #365 on: November 10, 2012, 11:23:14 am »
moriarty, it probably is this topic you were looking for: https://openxcom.org/forum/index.php/topic,655.0.html
(it's fenyo's mouse scrolling pull request)

I'm also more in favor of "map dragging" instead of "camera panning", and I think map dragging is more standard (in all modern games RTS games, in google maps and every other normal map application and every touchscreen game I know...). So eventually I'll probably put that in too, together with a "smooth camera movement" option. That will introduce a smooth movement of te camera when following a bullet, together with a subtile inertia, so the camera movement doesn't suddenly stop or starts, like when you drag and suddenly release slightly ramps down to a stop.
It are these small UI things people are used to in modern games and apps and that makes games that don't have them feel "cheap" to some people.
« Last Edit: November 10, 2012, 11:39:57 am by Daiky »

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Battlescape development
« Reply #366 on: November 10, 2012, 12:46:11 pm »
ah, thanks, yes, I couldn't find that one... my bad.

I like your plans, especially the smooth bullet following camera. it's those little touches that make openxcom so much better than the original :)

Offline Fenyő

  • Colonel
  • ****
  • Posts: 423
    • View Profile
Re: Battlescape development
« Reply #367 on: November 16, 2012, 07:23:40 am »
@moriarty: I've just finished the implementing what you've missed:
Changed: RMB Scroll's Invert mode now works as in Adobe Reader ("map dragging")

its in the PR.

Offline Fenyő

  • Colonel
  • ****
  • Posts: 423
    • View Profile
Re: Battlescape development
« Reply #368 on: November 19, 2012, 03:03:46 pm »
@moriarty: Have you tried the new invert mode? What is your opinion?

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Battlescape development
« Reply #369 on: November 29, 2012, 08:18:58 pm »
Didn't have much time lately... I just tried it and it looks good and feels right. thank you!

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Battlescape development
« Reply #370 on: November 29, 2012, 09:58:17 pm »
actually, just tried it some more, and found one issue :)

if you move your cursor to the edge of the screen (or window if playing windowed), the game starts its usual edge-scrolling! so if for example you want to scroll to the right, you "grab" something on the right-hand side of the screen and "drag" to the left, but once you reach the edge it starts scrolling to the left, because you hit the left edge!

I think there are two possible fixes for this:

1) disable the edge-scrolling mechanism while holding right mouse button (scrolling should continue beyond the edges of the screen, then.)

2) invert the edge-scrolling mechanism while  "battleScrollButton: [whatever]" is pressed AND "battleScrollButtonInvertMode" is "inverted"


btw, I think you should change that "battleScrollButtonInvertMode" to accept "true" and "false" as options, to have it consistent with the other "switches" in the config file, don't you think? maybe call it "battleScrollButtonModeInverted" instead, defaulting to "false".

Offline Fenyő

  • Colonel
  • ****
  • Posts: 423
    • View Profile
Re: Battlescape development
« Reply #371 on: November 30, 2012, 02:02:04 am »
if you move your cursor to the edge of the screen (or window if playing windowed), the game starts its usual edge-scrolling! so if for example you want to scroll to the right, you "grab" something on the right-hand side of the screen and "drag" to the left, but once you reach the edge it starts scrolling to the left, because you hit the left edge!
Yeah, i noticed that too. That's a downside of the inverted mode. :)

I think there are two possible fixes for this:

1) disable the edge-scrolling mechanism while holding right mouse button (scrolling should continue beyond the edges of the screen, then.)
I prefer this one. :)
You just need to set the conventional scroll to manual, this way the scrolling near the edges are activated only by a left click.
...At least in original X-Com, OpenXcom now does not make a difference between manual and auto scroll modes. (i think the manual is just not yet implemented :) )

2) invert the edge-scrolling mechanism while  "battleScrollButton: [whatever]" is pressed AND "battleScrollButtonInvertMode" is "inverted"
I don't see the point in this.
A condition (auto-scroll near the edges ONLY if Right(/Mid)-button is not in pressed state) to the auto-scroll should have more sense, i think.

btw, I think you should change that "battleScrollButtonInvertMode" to accept "true" and "false" as options, to have it consistent with the other "switches" in the config file, don't you think? maybe call it "battleScrollButtonModeInverted" instead, defaulting to "false".
Maybe. :)
Originally i thought it is better to have special values which are related to the option, (they express the thing better, more clearly to the user) this is why i didn't make it a boolean.

Others? What do you think? Do you guys also vote to change it to boolean?

Offline Daiky

  • Battlescape Programmer
  • Administrator
  • Commander
  • *****
  • Posts: 904
    • View Profile
Re: Battlescape development
« Reply #372 on: December 17, 2012, 05:47:22 pm »
See, you can walk on Mars in coveralls perfectly fine :)

Offline pmprog

  • Commander
  • *****
  • Posts: 647
  • Contributor
    • View Profile
    • Polymath Programming
Re: Battlescape development
« Reply #373 on: December 17, 2012, 05:52:37 pm »
Awesome! Good work! I look forward to start my Let's Play game

Offline michal

  • Commander
  • *****
  • Posts: 629
    • View Profile
Re: Battlescape development
« Reply #374 on: December 18, 2012, 09:35:04 am »
It's one small step for x-com soldier, but one giant leap for OpenXcom community.