Author Topic: Off Topic - Main  (Read 467649 times)

modman

  • Guest
Re: Off Topic - Main
« Reply #275 on: 19 August 2009, 21:16:03 »
I was looking at the wikia page for lua today.  I got to startLocation (faction), but it didn't make sense to me.  I quote it below:
Quote from: Glest Lua Wikia
Vec2i startLocation ( faction )

Returns the start location for a given faction.

Parameters:
faction - the index of the faction [0-3, Player1=0]

Example:
Code: [Select]
createUnit ( "someunit", 0, {startLocation(0)[1] + 5, startLocation(0)[2]} )
This would create a unit 5 cells east of startLocation 0.

I get most of it.  I'll talk it through.

"Create the unit "someunit" from player0 (really player one) at five tiles to the right of the start postition on the x axis and zero up or down"

But what I don't get are the braceted numbers after the startLocation(0)'s.  Why is it [1] and then [2] ????  Could someone please explain?

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Off Topic - Main
« Reply #276 on: 19 August 2009, 22:36:27 »
this is not off topic enough for this topic  ;D ;D ;D ;D ;D
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Off Topic - Main
« Reply #277 on: 19 August 2009, 22:51:00 »
I don't know LUA but I'd guess that marks each 'startLocation' command.
Maybe I'd like to learn LUA..... :P
Egypt Remastered!

Proof: Owner of glest@mail.com

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Off Topic - Main
« Reply #278 on: 19 August 2009, 23:19:20 »
Perhaps it signifies direction. I don't remember them being there.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

modman

  • Guest
Re: Off Topic - Main
« Reply #279 on: 20 August 2009, 01:38:33 »
I am infuriated!  I tried to find out how to uninstall IE and Windows Media Player, but there's really nothing.  No helpful info at all, on the whole internet!

Heh, I even went to the Microsoft website to see if I could find the answer, but there was only a way to make IE 8 revert back to IE 7.  That's not helpful when I want to completely remove it!  How clever they are; if you have problems and want to uninstall, the program is smart enough to keep it's shadow (actually, slightly more than a shadow) on your computer!

So I tried to ask a human being the question directly.  Unfortunately for me, Microsoft makes that virtually impossible.  Which is why I'm starting to get pissed at them.  They make everything so difficult, all of the links lead me in circles (not fun without blazing fast internet), and there's even a little box where I thought it would send to a human, but it was simply a search, which led me back to where I started!

Does anyone possibly have the answer for me?  I want to basically stop the Svchost process on my computer from getting so bloated.  Like in the middle of a Glest game, the graphics start getting progressively choppier.  So I do Task Manager, and find that the Svchost process is larger than the Glest process!

It might be a virus but I kinda doubt it.

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Off Topic - Main
« Reply #280 on: 20 August 2009, 02:59:54 »
Dude, just wipe it out.

Go to: C:\Program Files\ find internet explorer and delete the sucker
then go to: C:\Users\--your username--\find the hidden internet explorer suckers, and bring them out of their sucking existence, in other words...KILL THE SUCKER.

Uh....sorry I just hate IE so much..................it sucks.................. 
Egypt Remastered!

Proof: Owner of glest@mail.com

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Off Topic - Main
« Reply #281 on: 20 August 2009, 04:18:53 »
I was looking at the wikia page for lua today.  I got to startLocation (faction), but it didn't make sense to me.  I quote it below:
Quote from: Glest Lua Wikia
Vec2i startLocation ( faction )

Returns the start location for a given faction.

Parameters:
faction - the index of the faction [0-3, Player1=0]

Example:
Code: [Select]
createUnit ( "someunit", 0, {startLocation(0)[1] + 5, startLocation(0)[2]} )
This would create a unit 5 cells east of startLocation 0.

I get most of it.  I'll talk it through.

"Create the unit "someunit" from player0 (really player one) at five tiles to the right of the start postition on the x axis and zero up or down"

But what I don't get are the braceted numbers after the startLocation(0)'s.  Why is it [1] and then [2] ????  Could someone please explain?
It's really quite simple. Assumin you understand everything except the {startLocation(0)[1] + 5, startLocation(0)[2]} part, then I'll explain that part. It is {x,y} in format, but startLocation(0)[1] returns the x value of faction 0, while startLocation(0)[2] returns the y value of faction 0's start place.  By adding 5, it can assume that we will try to place the unit at 5 more than the X pos of the faction's start location. So if the factions start location is {21,33}, then the above code will be the equivilant of {26,33} ({21+5,33}).

And this being the offtopic board, you can talk about anything, off topic or not, just don't tell anyone, it's a SECRET... :o
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Off Topic - Main
« Reply #282 on: 20 August 2009, 05:10:30 »
Hey does anyone on the boards play Shaiya?

It's a Windows game, but I got ambitious this evening and spent a few hours figuring out how to run it on Linux.
It's an awesome MMORPG.

For Windows: http://shaiya.aeriagames.com/download

For Linux: download the game and get my package for playing it on Linux. My package is currently for Ubuntu/Kubuntu 8.04+, but if you know how, you can do things a little differently than the README instructs, and use it for other distributions of Linux.

Somehow I was able to pack a 7z....

HAVE FUN!!!
« Last Edit: 20 August 2009, 07:41:35 by archmage101 »
Egypt Remastered!

Proof: Owner of glest@mail.com

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Off Topic - Main
« Reply #283 on: 20 August 2009, 18:10:51 »
I tried to find out how to uninstall IE and Windows Media Player, but there's really nothing.
I'm 95% sure that you can't.  They're integral to the operating system, so it's a little like saying "I'd like to keep my body, but why can't I get rid of this darn liver?  It's so annoying!"  ;D

modman

  • Guest
Re: Off Topic - Main
« Reply #284 on: 20 August 2009, 19:56:48 »
I tried to find out how to uninstall IE and Windows Media Player, but there's really nothing.
I'm 95% sure that you can't.  They're integral to the operating system, so it's a little like saying "I'd like to keep my body, but why can't I get rid of this darn liver?  It's so annoying!"  ;D
Yes, I understand what you mean.  But that only goes so far; if there were a better liver out there, like say, Liverfox... :D

(excuse the lameness of the joke)

It's really quite simple. Assuming you understand everything except the {startLocation(0)[1] + 5, startLocation(0)[2]} part, then I'll explain that part. It is {x,y} in format, but startLocation(0)[1] returns the x value of faction 0, while startLocation(0)[2] returns the y value of faction 0's start place.  By adding 5, it can assume that we will try to place the unit at 5 more than the X pos of the faction's start location. So if the factions start location is {21,33}, then the above code will be the equivilant of {26,33} ({21+5,33}).
I understand that, but I was just wondering about the bracketed numbers [1] and [2].

I might make a Lua scenario for Dark Magic when it's done.
« Last Edit: 20 August 2009, 19:58:33 by modman »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Off Topic - Main
« Reply #285 on: 21 August 2009, 20:49:37 »
Yeah, the [1] is x, [2] is y. Took me a moment too. If you want, I'll give you a hand with the lua. I pretty much understand it all. The only person better than me at it is silnarm (and maybe hailstone) because they implimented it. It's a very simple scripting in glest actually.

I wonder if the filesize limit was removed in GAE... Vanilla Glest couldn't play scripts once they got too big (~9+kb). Only one way to find out. Or maybe it wasn't filesize, maybe length of actions?!?

Hmm...

And yeah modman, the joke was kinda lame, no offense. We happen to need our liver. But a rib? That can do! Or maybe a kidney? KidneyFox? Hmm, maybe not.

"God noticed adam looking lonely. He asked what was wrong. Adamn replied that he had no one to spend this paradise with. So god said:

I will make you a woman. She will clean all your dishes, make the beds, cook for you, do all the housework, work full-time, service all your needs, bear you children, and never complain about anything.

Adam was impressed. He asked god how much a woman like this would cost.

God replied, an arm and a leg.

Adam asked, what can I get for a rib?"
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

modman

  • Guest
Re: Off Topic - Main
« Reply #286 on: 21 August 2009, 21:18:38 »
Yes, I figured it out.  The brackets have to do with the fact that it is an array used to hold the x and y coordinates.

And I will gladly PM you if I have some questions, but it's pretty straightforward to me.

modman

  • Guest
Re: Off Topic - Main
« Reply #287 on: 23 August 2009, 01:38:38 »
I found this wonderful add-on for Firefox called Skip Screen which allows a person to skip all of the clicks needed to download a file.  It skips all of the add-laiden pages and countdowns and gives you the download immediately.

Check it out: https://addons.mozilla.org/en-US/firefox/addon/11243

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Off Topic - Main
« Reply #288 on: 23 August 2009, 20:00:45 »
Nice, I must test this, thanks for the info
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

modman

  • Guest
Re: Off Topic - Main
« Reply #289 on: 24 August 2009, 00:26:38 »
Sometimes I want to disable it, because I also have Down Them All! which is a download manager as an add on.  So to actually use the download manager, you have to right click the link, but skip screen skips that screen!

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Off Topic - Main
« Reply #290 on: 24 August 2009, 22:06:59 »
I edited a star trek voyager image this evening. I used paint because I'm too lazy to download a different editor, so it came out kind of basic looking.

If I can dig up some of the images I edited a couple of years ago, I'll post them too. Don't worry they're much better than this

Egypt Remastered!

Proof: Owner of glest@mail.com

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Off Topic - Main
« Reply #291 on: 24 August 2009, 23:20:51 »
Okay, so I just installed the new version of Kubuntu and I can't figure out how to disable the tap-to-click and scrolling features on my mouse touchpad.  It was obvious on regular Ubuntu, but I can't find the option on Kubuntu anywhere.  Anybody know how?  It's driving me a little bit crazy because I keep accidentally clicking on things and scrolling across the screen when I don't mean to.

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Off Topic - Main
« Reply #292 on: 24 August 2009, 23:33:45 »
I use Kubuntu 9.04. I assume that's the version you have.
Tuesday night I will be at my Dads, so I will have access to Kubuntu.

I look into it then.
For now search the internet or train yourself to use it temporarily, or you can just wait until I look for a way to help you.

Egypt Remastered!

Proof: Owner of glest@mail.com

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Off Topic - Main
« Reply #293 on: 25 August 2009, 00:26:18 »
Okay, I guess I'll just play around with it for a while and see what I find.  I've got plenty of things to discover, I'm sure.

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Off Topic - Main
« Reply #294 on: 25 August 2009, 00:45:19 »
See if you can find out whether Linux knows it's on a laptop.
Then go to system settings: K Menu> Computer Tab > System Settings, and fiddle around in there, I believe there is a keyboard/mouse thing to click on which will let you play with the keyboard/mouse settings(obviously :P). See what you can do in there.

If that doesn't work I recommend an internet search.

Good Luck!  :)
Buenos Suerte! :)
Bonne Chance! :)
Egypt Remastered!

Proof: Owner of glest@mail.com

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Off Topic - Main
« Reply #295 on: 25 August 2009, 01:17:39 »
Yeah, that was the first place I looked because that's how I did it on Ubuntu, but Kubuntu doesn't give me that option.  It has various mouse options, sure, but nothing about disabling tap-to-click.  I think I may have found a solution, though.

Edit: Solved it.  In case anyone else is interested in disabling the most annoying feature on any computer ever (yeah, worse than the BSoD), look here: http://ubuntuforums.org/showthread.php?t=1046677
« Last Edit: 25 August 2009, 01:48:32 by John.d.h »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Off Topic - Main
« Reply #296 on: 25 August 2009, 03:47:48 »
I'm back! ;)

Hey, didn't miss anything, did I?

Good Luck!  :)
Buenos Suerte! :)
Bonne Chance! :)
English, Spanish, and french, right? I didn't know the second word of the second line, but buenos is good. I know chance is luck in french...

Dunno why you hate this feature so much. I use it lots on my windows laptop. It's quieter for when you need total silence (ie: some one asleep literally three feet away) and usually faster for me. Of course, I use a wired laser mouse 95% of the time, so I may not notice it that much!
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Off Topic - Main
« Reply #297 on: 25 August 2009, 12:13:02 »
Uh Omega that says
Good Luck
Buenos suerte(Good Luck)
Bonne chance(Good Luck)

See that's the thing about Linux, someone has always got an answer for you.
« Last Edit: 25 August 2009, 12:14:36 by archmage101 »
Egypt Remastered!

Proof: Owner of glest@mail.com

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Off Topic - Main
« Reply #298 on: 25 August 2009, 23:22:37 »
Dunno why you hate this feature so much. I use it lots on my windows laptop. It's quieter for when you need total silence (ie: some one asleep literally three feet away) and usually faster for me. Of course, I use a wired laser mouse 95% of the time, so I may not notice it that much!
I realize that it makes clicking a lot easier, but it's so sensitive that I accidentally click on things all the time.  If I could configure it so I had to tap a lot harder for it to register as a click, or maybe just tap on a certain part of the touchpad, then I'd be all for it, but as it stands I don't think there's a way to do this.  I'd definitely look into getting an external mouse if I weren't almost always away from home when I do my computing.  That might change soon, though, since my laptop is sitting at home right now hacking my neighbor's wifi.  ;D

Mark

  • Guest
Re: Off Topic - Main
« Reply #299 on: 26 August 2009, 00:47:44 »
I understand your predicament, John.d.h.  The laptop I use has that feature.  It is nice, but it took months to get used to.  Until then I would inadvertently click on anything I dragged my mouse over.

 

anything