Author Topic: Draw picture from the pictures center instead of top left.  (Read 5708 times)

0 Members and 1 Guest are viewing this topic.

Offline -Major-

  • Veteran
  • *****
  • Posts: 1419
as topic says, why the hell isn't this already fixed? you add headhost effects and debugs it, but won't change some values and how the image should be drawn...

this would unlock a lot of modding possibilities...

DarkCrusade

  • Guest
Re: Draw picture from the pictures center instead of top left.
« Reply #1 on: May 15, 2010, 06:53:09 am »
Elaborate, I don't understand what you want.

headhost effects

Meh.

Offline -Major-

  • Veteran
  • *****
  • Posts: 1419
Re: Draw picture from the pictures center instead of top left.
« Reply #2 on: May 15, 2010, 06:56:47 am »
to draw the image from it's center instead of it's top left.

DarkCrusade

  • Guest
Re: Draw picture from the pictures center instead of top left.
« Reply #3 on: May 15, 2010, 07:02:51 am »
It's no bug, it's just how pictures are drawn in Soldat. I agree, but add the M79 bullet too please

Offline -Major-

  • Veteran
  • *****
  • Posts: 1419
Re: Draw picture from the pictures center instead of top left.
« Reply #4 on: May 15, 2010, 07:33:32 am »
It's no bug, it's just how pictures are drawn in Soldat. I agree, but add the M79 bullet too please
headshot effect was just an example of how eC is wasting time...

it would be for all pictures loaded into soldat ;o

DarkCrusade

  • Guest
Re: Draw picture from the pictures center instead of top left.
« Reply #5 on: May 15, 2010, 07:39:08 am »
Change your description then. It doesn't matter from "where it is drawn" but where is the center. That means where it gets turned around

Offline Bistoufly

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 798
Re: Draw picture from the pictures center instead of top left.
« Reply #6 on: May 15, 2010, 08:22:25 am »
to draw the image from it's center instead of it's top left.

+1 please consider doing this.
It would help a lot for mod making.

Offline Dusty

  • Veteran
  • *****
  • Posts: 1015
Re: Draw picture from the pictures center instead of top left.
« Reply #7 on: May 15, 2010, 08:43:21 am »
Change your description then. It doesn't matter from "where it is drawn" but where is the center. That means where it gets turned around

You're probably the only person here who doesn't understand his point.

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: Draw picture from the pictures center instead of top left.
« Reply #8 on: May 15, 2010, 08:54:12 am »
Sprite {
 x,y,w,h;
 Draw(...){
   screen.draw( x + w/2, y + h/2, surface,...);
 }
};

DarkCrusade

  • Guest
Re: Draw picture from the pictures center instead of top left.
« Reply #9 on: May 15, 2010, 08:59:43 am »
Dusty, could you be so kind and explain me what I don't understand then? Thanks!

Offline Dusty

  • Veteran
  • *****
  • Posts: 1015
Re: Draw picture from the pictures center instead of top left.
« Reply #10 on: May 15, 2010, 09:04:03 am »
Elaborate, I don't understand what you want.

Offline biohazard

  • Camper
  • ***
  • Posts: 330
  • B4bY NighT
    • B4bY NighT
Re: Draw picture from the pictures center instead of top left.
« Reply #11 on: May 15, 2010, 09:07:54 am »
How to determined the center on non simmetrical images? I Think its better how it is.

Offline -Major-

  • Veteran
  • *****
  • Posts: 1419
Re: Draw picture from the pictures center instead of top left.
« Reply #12 on: May 15, 2010, 09:55:34 am »
How to determined the center on non simmetrical images? I Think its better how it is.
all images are squares... if you're talking about numbers that can't be divided by 2, then you just add +1 to the width and height (or minus one)

Offline freestyler

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 326
Re: Draw picture from the pictures center instead of top left.
« Reply #13 on: May 15, 2010, 10:15:55 am »
F12, but not for all graphics, since that would ruin all interfaces ever made. Would be nice for crosshairs and bullets.

Offline biohazard

  • Camper
  • ***
  • Posts: 330
  • B4bY NighT
    • B4bY NighT
Re: Draw picture from the pictures center instead of top left.
« Reply #14 on: May 15, 2010, 10:24:27 am »
idk if its better for cursor, ppl are used to calculate the bullet arc by how it is already. Btw in my POV, would be better to use directdraw, instead of sprite, to render the cursor... Would prevent those imba cursor with a giant vertical line on it.

Offline Centurion

  • Flagrunner
  • ****
  • Posts: 699
Re: Draw picture from the pictures center instead of top left.
« Reply #15 on: May 15, 2010, 11:00:15 am »
headshot effect was just an example of how eC is wasting time...

You seem to mock eC's work very often lately. Maybe you want to start developing next soldat releases by yourself?

It'd fail even harder than it already does.

Offline -Major-

  • Veteran
  • *****
  • Posts: 1419
Re: Draw picture from the pictures center instead of top left.
« Reply #16 on: May 15, 2010, 11:10:58 am »
idk if its better for cursor, ppl are used to calculate the bullet arc by how it is already. Btw in my POV, would be better to use directdraw, instead of sprite, to render the cursor... Would prevent those imba cursor with a giant vertical line on it.
we're talking pascal now... I'm not really familiar with it, but as far as I know, it's a rather weak language.

headshot effect was just an example of how eC is wasting time...

You seem to mock eC's work very often lately. Maybe you want to start developing next soldat releases by yourself?

It'd fail even harder than it already does.
sure, I could develop soldat all by myself.
« Last Edit: May 15, 2010, 11:13:20 am by -Major- »

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2078
  • need a life. looking for donors.
Re: Draw picture from the pictures center instead of top left.
« Reply #17 on: May 15, 2010, 02:23:14 pm »
F12, but not for all graphics, since that would ruin all interfaces ever made. Would be nice for crosshairs and bullets.
Also weapons and gostek bodyparts.

Yeah, this fix would make modding community very happy. It would be especially good now, when most people are getting bored from normal Soldat and are playing mods more often.

You're probably the only person here who doesn't understand his point.
If that makes you feel smarter, I had no idea what -Major- was talking about either.

sure, I could develop soldat all by myself.
Less talk, more action. Join openSoldat project.
« Last Edit: May 15, 2010, 02:25:45 pm by L[0ne]R »


L[one]R, INF veteran
maps - remakes: inf_Warehouse ; inf_Fortress ; inf_(Sun)Rise ; inf_Outpost ; inf_Abel ; inf_Moonshine

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: Draw picture from the pictures center instead of top left.
« Reply #18 on: May 15, 2010, 03:09:02 pm »
STOP TALKING ABOUT SHIT!
Just fix the damn CURSOR! It's really stupid when you're getting binked and this damn cursor resizes from top left corner!
KAWAAAAAAAIIIIIIIIII

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2078
  • need a life. looking for donors.
Re: Draw picture from the pictures center instead of top left.
« Reply #19 on: May 15, 2010, 03:12:24 pm »
STOP TALKING ABOUT s**t!
Just fix the damn CURSOR! It's really stupid when you're getting binked and this damn cursor resizes from top left corner!
Basically whatever you, just you and only you want is ok, everything else is, as you say, shit.
Somehow your posts from long ago seemed to me more appropriate, but lately you've been acting like a stereotypical troll. What can I say.. stop trolling and leave the forums, please. Stand in the corner and think about your behavior.


L[one]R, INF veteran
maps - remakes: inf_Warehouse ; inf_Fortress ; inf_(Sun)Rise ; inf_Outpost ; inf_Abel ; inf_Moonshine

DarkCrusade

  • Guest
Re: Draw picture from the pictures center instead of top left.
« Reply #20 on: May 15, 2010, 03:23:49 pm »
Neosano could you please spam at Hexerpage where admins won't ban you? This is "reality"

@-Major-: I heard somewhere you've done some games. Can you show me some?

Offline Dusty

  • Veteran
  • *****
  • Posts: 1015
Re: Draw picture from the pictures center instead of top left.
« Reply #21 on: May 15, 2010, 03:24:34 pm »
You're probably the only person here who doesn't understand his point.
If that makes you feel smarter, I had no idea what -Major- was talking about either.

It really does yeah, I understood instantly after I had read the title. Less thinking more common sense pls

DarkCrusade

  • Guest
Re: Draw picture from the pictures center instead of top left.
« Reply #22 on: May 15, 2010, 03:27:24 pm »
Probably because trolls understand trolls..

Offline -Major-

  • Veteran
  • *****
  • Posts: 1419
Re: Draw picture from the pictures center instead of top left.
« Reply #23 on: May 15, 2010, 05:02:22 pm »
Neosano could you please spam at Hexerpage where admins won't ban you? This is "reality"

@-Major-: I heard somewhere you've done some games. Can you show me some?
nope ;o

F12, but not for all graphics, since that would ruin all interfaces ever made. Would be nice for crosshairs and bullets.
Also weapons and gostek bodyparts.

Yeah, this fix would make modding community very happy. It would be especially good now, when most people are getting bored from normal Soldat and are playing mods more often.
well :p, reason for my suggestion was that I was creating an interface mod, but ran into a problem... which was to make the player indicator cover more of the left area of the soldat, which isn't possible.

sure, I could develop soldat all by myself.
Less talk, more action. Join openSoldat project.
well, I would just fix whatever I want and then drop it :p, I would probably be a worse developer than eC.

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: Draw picture from the pictures center instead of top left.
« Reply #24 on: May 15, 2010, 05:02:56 pm »
STOP TALKING ABOUT s**t!
Just fix the damn CURSOR! It's really stupid when you're getting binked and this damn cursor resizes from top left corner!
Basically whatever you, just you and only you want is ok, everything else is, as you say, s**t.
Somehow your posts from long ago seemed to me more appropriate, but lately you've been acting like a stereotypical troll. What can I say.. stop trolling and leave the forums, please. Stand in the corner and think about your behavior.
This thread became really useless and BORING. Nobody uses these funky mods, when everybody use a CURSOR. This fix is really important, it must be fixed!
KAWAAAAAAAIIIIIIIIII

Offline biohazard

  • Camper
  • ***
  • Posts: 330
  • B4bY NighT
    • B4bY NighT
Re: Draw picture from the pictures center instead of top left.
« Reply #25 on: May 15, 2010, 09:37:08 pm »
Whats wrong with the gosteks? If you play realistic u can notice easly headshots. How many times i used 2 bullets; 2 headshots; 2 kills; profit @ low volly with deagles.

Btw with ruger its easly noticiable.

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2078
  • need a life. looking for donors.
Re: Draw picture from the pictures center instead of top left.
« Reply #26 on: May 15, 2010, 11:50:53 pm »
This thread became really useless and BORING. Nobody uses these funky mods, when everybody use a CURSOR. This fix is really important, it must be fixed!

I think you made a few spellings mistakes in your comment. Let me correct them.
I think this thread has become useless and boring. I don't use these funky mods.

I'll congratulate you on writing this part (almost) correctly though:
Everybody uses a CURSOR. This fix is really important, it must be fixed!
-----

But seriously - stop making up facts that aren't true, and stop trying to make your opinion sound like it's everyone else's opinion. That's what trolls do. Trolls are stupid, pathetic and miserable creatures and are despised by everyone. Don't be a troll.


L[one]R, INF veteran
maps - remakes: inf_Warehouse ; inf_Fortress ; inf_(Sun)Rise ; inf_Outpost ; inf_Abel ; inf_Moonshine

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: Draw picture from the pictures center instead of top left.
« Reply #27 on: May 16, 2010, 02:20:55 am »
This thread became really useless and BORING. Nobody uses these funky mods, when everybody use a CURSOR. This fix is really important, it must be fixed!

I think you made a few spellings mistakes in your comment. Let me correct them.
I think this thread has become useless and boring. I don't use these funky mods.

I'll congratulate you on writing this part (almost) correctly though:
Everybody uses a CURSOR. This fix is really important, it must be fixed!
-----

But seriously - stop making up facts that aren't true, and stop trying to make your opinion sound like it's everyone else's opinion. That's what trolls do. Trolls are stupid, pathetic and miserable creatures and are despised by everyone. Don't be a troll.
See? This thread is useless! 70% of messages are off-topic :-S
KAWAAAAAAAIIIIIIIIII

DarkCrusade

  • Guest
Re: Draw picture from the pictures center instead of top left.
« Reply #28 on: May 16, 2010, 02:34:09 am »
@-Major-: I heard somewhere you've done some games. Can you show me some?
nope ;o
even when I was really noob at programming, my programs/games worked without stupid random bugs (since I fixed them as soon as I noticed them, and I knew my code in and out)

oh what now
« Last Edit: May 16, 2010, 02:39:34 am by DarkCrusade »

Offline -Major-

  • Veteran
  • *****
  • Posts: 1419
Re: Draw picture from the pictures center instead of top left.
« Reply #29 on: May 16, 2010, 05:20:42 am »
@-Major-: I heard somewhere you've done some games. Can you show me some?
nope ;o
even when I was really noob at programming, my programs/games worked without stupid random bugs (since I fixed them as soon as I noticed them, and I knew my code in and out)

oh what now
I have games, but I'm not gonna show them for you.

Offline Mercury92

  • Camper
  • ***
  • Posts: 284
Re: Draw picture from the pictures center instead of top left.
« Reply #30 on: May 16, 2010, 08:04:46 am »
@-Major-: I heard somewhere you've done some games. Can you show me some?
nope ;o
even when I was really noob at programming, my programs/games worked without stupid random bugs (since I fixed them as soon as I noticed them, and I knew my code in and out)

oh what now
I have games, but I'm not gonna show them for you.

mario/tetris/ping-pong
[saw]  on 1.5.1

Offline Horve

  • Flagrunner
  • ****
  • Posts: 692
  • Vig
Re: Draw picture from the pictures center instead of top left.
« Reply #31 on: May 16, 2010, 10:28:18 am »
Elaborate, I am unable to understand anything, even if I try really hard.

headhost effects

Meh.
I don't know what I'm talking about. I agree, but I disagree, also, M79 bullets.
Change your description, because I, the lord of all holy, demand it. It doesn't matter what you say, listen to wha I say now. That means, you listen to what I say even though I am full of s**t as much as I'm full of myself.
Dusty, could you be so kind and notice how much of an imbecile I am once more? Thanks!
Neosano could you please tell everyone the story of how my sorry ass was banned on Hexer forums for phishing and then trying to evade the punishment for playing by pulling the "little brother" card?

@-Major-: I heard somewhere you've done some games. Can you show me some?
Probably because I am a stupid troll..
@-Major-: I heard somewhere you've done some games. I like games and I demand your attention right f**king now!
nope ;o
even when I was really noob at programming, my programs/games worked without stupid random bugs (since I fixed them as soon as I noticed them, and I knew my code in and out)

oh what now. Durr durr, derp derp.
« Last Edit: May 16, 2010, 12:38:01 pm by Horve »

Offline Illuminatus

  • Camper
  • ***
  • Posts: 441
  • ...soldat-freak since 2004...
Re: Draw picture from the pictures center instead of top left.
« Reply #32 on: May 16, 2010, 11:46:34 am »
someone pls close this thread
No difference between man and mouse - both end up in pussy.

Offline -Major-

  • Veteran
  • *****
  • Posts: 1419
Re: Draw picture from the pictures center instead of top left.
« Reply #33 on: May 16, 2010, 01:01:15 pm »
someone pls close this thread
you should rather ban spammers than locking the topic that is being hijacked, grow a brain.

besides, you should be banned for backseat moderating.

DarkCrusade

  • Guest
Re: Draw picture from the pictures center instead of top left.
« Reply #34 on: May 16, 2010, 01:17:35 pm »
besides, you should be banned for backseat moderating.

So what do you think you do. I agree with Illuminatus on this point. This whole discussion is pointless and getting nowhere, if EnEsCe decides to do this he'll let us know.

Offline -Major-

  • Veteran
  • *****
  • Posts: 1419
Re: Draw picture from the pictures center instead of top left.
« Reply #35 on: May 16, 2010, 01:45:57 pm »
besides, you should be banned for backseat moderating.

So what do you think you do. I agree with Illuminatus on this point. This whole discussion is pointless and getting nowhere, if EnEsCe decides to do this he'll let us know.
I am pointing out to him what he's doing wrong, and back-seat moderating is very annoying, both for admins and other users.
it is getting somewhere, untill YOU slided off the subject. if you're too fucking stupid to stay on topic then don't post.

Offline Illuminatus

  • Camper
  • ***
  • Posts: 441
  • ...soldat-freak since 2004...
Re: Draw picture from the pictures center instead of top left.
« Reply #36 on: May 17, 2010, 09:42:51 am »
besides, you should be banned for backseat moderating.
Ya, I should have PM'ed some moderator instead of posting here so you don't rage again.
No difference between man and mouse - both end up in pussy.

Offline Mercury92

  • Camper
  • ***
  • Posts: 284
Re: Draw picture from the pictures center instead of top left.
« Reply #37 on: May 17, 2010, 03:04:03 pm »
besides, you should be banned for backseat moderating.

So what do you think you do. I agree with Illuminatus on this point. This whole discussion is pointless and getting nowhere, if EnEsCe decides to do this he'll let us know.
I am pointing out to him what he's doing wrong, and back-seat moderating is very annoying, both for admins and other users.
it is getting somewhere, untill YOU slided off the subject. if you're too f**king stupid to stay on topic then don't post.
Well looks you started topic and going into offtopic while blaming others.
[saw]  on 1.5.1

Offline SadistAtHeart

  • Global Moderator
  • Flagrunner
  • *****
  • Posts: 636
  • golevka
Re: Draw picture from the pictures center instead of top left.
« Reply #38 on: May 17, 2010, 09:56:25 pm »
Thread locked.