Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 376 377 [378] 379 380 ... 796

Author Topic: if self.isCoder(): post() #Programming Thread  (Read 903662 times)

Dutchling

  • Bay Watcher
  • Ridin' with Biden
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #5655 on: March 31, 2014, 05:10:18 pm »

I assumed I had to be in the folder the module is in, not the one Python is installed in. I'll try again in the python folder.

edit: well that solved one problem. But now command prompt can (obviously) not find install.py

I feel like I'm missing something extremely basic here. Surely I'm not supposed to move the module to my Python install directory.

editt: Got it. C:/Python34/python setup.py install seems to be doing the trick.
It still gives errors, but these I can fix myself :P
« Last Edit: March 31, 2014, 06:39:05 pm by Dutchling »
Logged

Dutchling

  • Bay Watcher
  • Ridin' with Biden
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #5656 on: March 31, 2014, 07:18:00 pm »

Ah, so apparently there are multiple kinds of Python.
« Last Edit: March 31, 2014, 09:33:39 pm by Dutchling »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #5657 on: April 01, 2014, 02:52:50 am »

It may be for 2.7, yeah.

Mephisto

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #5658 on: April 01, 2014, 07:14:53 am »

It looks like the library you want to use is supposed to work on 2 and 3.

It's on pypi and you've got Python 3.4, which is supposed to come with pip (though I've not installed it on Windows so I'm not sure if it was left out for some reason or another). What happens if you run `<path_to_pip>/pip install noise`, possibly from a console with admin rights? The pip executable should be somewhere in the vicinity of the python executable.
Logged

MorleyDev

  • Bay Watcher
  • "It is not enough for it to just work."
    • View Profile
    • MorleyDev
Re: if self.isCoder(): post() #Programming Thread
« Reply #5659 on: April 03, 2014, 11:14:09 am »

Python is a lot less afraid of making breaking changes to the language from version to version compared to...pretty much every other programming language on the planet that counts itself as ahead of version 1.0.0. As annoying as it gets, I can't help but have a grudging respect for that...

If you are getting "python not found", it's because python isn't on your path. A lot of programming languages and tools work best from the command line even on Windows, so figuring out how a tool works via cmd/sh is something you'll have to get used to.

I'd say unfortunately, but it means you can automate your usage of tools, which for any serious programming project is pretty important. Between Linux and experience practising Continuous Integration, my brain switched over to "Shell scripting is awesome! Unlimited powa!" awhile ago.
« Last Edit: April 03, 2014, 11:18:25 am by MorleyDev »
Logged

Maklak

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #5660 on: April 07, 2014, 12:41:58 pm »

I've asked for a C# tutorial a while ago and people were recommending MSDN. I've found something simpler, it only talks about the properties and methods that are important. http://www.dotnetperls.com/
Logged
Quote from: Omnicega
Since you seem to criticize most things harsher than concentrated acid, I'll take that as a compliment.
On mining Organics
Military guide for FoE mod.
Research: Crossbow with axe and shield.
Dropbox referral

Johuotar

  • Bay Watcher
    • View Profile
    • Some game projects
Re: if self.isCoder(): post() #Programming Thread
« Reply #5661 on: April 07, 2014, 12:44:51 pm »

Oh yeah, Dotperls has saved me many times when I've had to complete assignment. :P
Here's something I've been reading lately, it's been pretty useful too: http://rbwhitaker.wikidot.com/c-sharp-tutorials
Logged
[img height=x width=y]http://LINK TO IMAGE HERE[/img]
The Toad hops in mysterious ways.
This pure mountain spring water is indispensable. Literally. I'm out of paper cups.

DreamThorn

  • Bay Watcher
  • Seer of Void
    • View Profile
    • My game dev hobby blog (updates almost never)
Re: if self.isCoder(): post() #Programming Thread
« Reply #5662 on: April 08, 2014, 05:55:08 am »

Some more testing, it seems to be the amount of screen filled, not how close the camera is. I tested this by putting the camera in a position where everything was running smooth and scaled it all up. Which seems to be evidence for some sort of fragment thing.

The problem is called over-draw.  What happens is that you are drawing the same pixels over and over.  When there is no transparency the renderer renders from near to far and can use the depth buffer to cull fragments early, meaning that each fragment is rendered only once.  This wouldn't work with transparency.

One idea that I have had on this subject is to repurpose the depth buffer to an opacity buffer that culls when a certain opacity level has been reached.  This would only work in a system where a total ordering of polygons is possible, so I don't expect any closed-source general-purpose renderer to be flexible enough to allow this.

P.S. Some ways to ensure the existence of a total ordering of polygons are: a BSP tree, an octree, or a voxel grid.
Logged
This is what happens when we randomly murder people.

You get attacked by a Yandere triangle monster.

LoSboccacc

  • Bay Watcher
  • Σὺν Ἀθηνᾷ καὶ χεῖρα κίνει
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #5663 on: April 08, 2014, 09:27:24 am »

Half rogue, half programmers brainteaser, most close representation of the matrix I ever seen

http://alexnisnevich.github.io/untrusted/

Can you code yourself out of a paper bag?
Logged

da_nang

  • Bay Watcher
  • Argonian Overlord
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #5664 on: April 08, 2014, 10:22:04 am »

Half rogue, half programmers brainteaser, most close representation of the matrix I ever seen

http://alexnisnevich.github.io/untrusted/

Can you code yourself out of a paper bag?
That is awesome. Programming and gaming wrapped into one.
Logged
"Deliver yesterday, code today, think tomorrow."
Ceterum censeo Unionem Europaeam esse delendam.
Future supplanter of humanity.

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #5665 on: April 08, 2014, 12:54:52 pm »

Half rogue, half programmers brainteaser, most close representation of the matrix I ever seen

http://alexnisnevich.github.io/untrusted/

Can you code yourself out of a paper bag?
That was a great game (the API was horrible, but that was probably necessary for the game to be challenging). Here's some useful non-hints that should have been clarified: Try out every button below the code window, and look at all the menu options. Also useful: "map" is a global variable. Finally, the "endOfTheLine" level is not the final level.
Logged

miauw62

  • Bay Watcher
  • Every time you get ahead / it's just another hit
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #5666 on: April 08, 2014, 01:18:01 pm »

I cannot into JavaScript ;_;

Can't get past the color lock, and I have no idea what I'm doing wrong. Aaaaaaaa
if (player.getColor() === "#0f0") { seems to be the problem.
« Last Edit: April 08, 2014, 01:19:47 pm by miauw62 »
Logged

Quote from: NW_Kohaku
they wouldn't be able to tell the difference between the raving confessions of a mass murdering cannibal from a recipe to bake a pie.
Knowing Belgium, everyone will vote for themselves out of mistrust for anyone else, and some kind of weird direct democracy coalition will need to be formed from 11 million or so individuals.

cerapa

  • Bay Watcher
  • It wont bite....unless you are the sun.
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #5667 on: April 08, 2014, 01:58:09 pm »

I cannot into JavaScript ;_;

Can't get past the color lock, and I have no idea what I'm doing wrong. Aaaaaaaa
if (player.getColor() === "#0f0") { seems to be the problem.
Same problem here.

EDIT: Now stuck in the woods.
« Last Edit: April 08, 2014, 02:04:49 pm by cerapa »
Logged

Tick, tick, tick the time goes by,
tick, tick, tick the clock blows up.

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #5668 on: April 08, 2014, 01:59:24 pm »

If you have trouble with Javascript, it's generally not your fault, but Javascript's. Try using == instead of ===.
Logged

miauw62

  • Bay Watcher
  • Every time you get ahead / it's just another hit
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #5669 on: April 08, 2014, 02:13:45 pm »

Oh great.
A part of the code has somehow become read-only.

E:
Resetting solved the problem, but == doesn't work either.
« Last Edit: April 08, 2014, 02:17:05 pm by miauw62 »
Logged

Quote from: NW_Kohaku
they wouldn't be able to tell the difference between the raving confessions of a mass murdering cannibal from a recipe to bake a pie.
Knowing Belgium, everyone will vote for themselves out of mistrust for anyone else, and some kind of weird direct democracy coalition will need to be formed from 11 million or so individuals.
Pages: 1 ... 376 377 [378] 379 380 ... 796