• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 22:08
CET 04:08
KST 12:08
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
RSL Season 3: RO16 results & RO8 bracket12Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge1[TLMC] Fall/Winter 2025 Ladder Map Rotation14Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA12
StarCraft 2
General
RSL Season 3: RO16 results & RO8 bracket SC: Evo Complete - Ranked Ladder OPEN ALPHA RSL Season 3 - Playoffs Preview Mech is the composition that needs teleportation t GM / Master map hacker and general hacking and cheating thread
Tourneys
RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship StarCraft Evolution League (SC Evo Biweekly) Constellation Cup - Main Event - Stellar Fest 2025 RSL Offline Finals Dates + Ticket Sales!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened
Brood War
General
Data analysis on 70 million replays A cwal.gg Extension - Easily keep track of anyone soO on: FanTaSy's Potential Return to StarCraft [ASL20] Ask the mapmakers — Drop your questions FlaSh on: Biggest Problem With SnOw's Playstyle
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] GosuLeague T1 Ro16 - Tue & Thu 22:00 CET [BSL21] RO16 Tie Breaker - Group B - Sun 21:00 CET
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Stormgate/Frost Giant Megathread EVE Corporation Path of Exile [Game] Osu! Should offensive tower rushing be viable in RTS games?
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas
Community
General
Russo-Ukrainian War Thread The Games Industry And ATVI US Politics Mega-thread Things Aren’t Peaceful in Palestine About SC2SEA.COM
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread Korean Music Discussion
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
The Health Impact of Joining…
TrAiDoS
Dyadica Evangelium — Chapt…
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1492 users

The Big Programming Thread - Page 100

Forum Index > General Forum
Post a Reply
Prev 1 98 99 100 101 102 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
Craton
Profile Blog Joined December 2009
United States17269 Posts
December 22 2011 00:38 GMT
#1981
I'm trying to install the Windows SDK, but the installer keeps failing. The web installer and ISO installer errors out with
A problem occurred while installing selected Windows SDK components.

Installation of the "Microsoft Windows SDK for Windows 7" product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information.

Please attempt to resolve the problem and then start Windows SDK setup again. If you continue to have problems with this issue, please visit the SDK team support page at http://go.microsoft.com/fwlink/?LinkId=130245.

Click the View Log button to review the installation log.
To exit, click Finish."


The end of the error log reads:
+ Show Spoiler +

7:33:47 PM Wednesday, December 21, 2011: SFX C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x64.exe installation started with log file C:\Users\Me\AppData\Local\Temp\Microsoft Windows SDK for Windows 7_0f09d0ba-9ef4-40fa-a294-a60754e10b4c_SFX.log

7:33:55 PM Wednesday, December 21, 2011: C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x64.exe installed successfully.

7:33:55 PM Wednesday, December 21, 2011: SFX C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x86.exe installation started with log file C:\Users\Me\AppData\Local\Temp\Microsoft Windows SDK for Windows 7_728e3a58-b902-49c8-92a6-5836d4c21324_SFX.log

7:33:58 PM Wednesday, December 21, 2011: C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x86.exe installation failed with return code 5100

7:34:06 PM Wednesday, December 21, 2011: [SDKSetup:Error] Config_Products_Install: Installation of Product Microsoft Windows SDK for Windows 7 (failed): Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information. Stack: at SDKSetup.Product.ConfigureRelatedSfx() at SDKSetup.Product.ConfigureNewProduct(ManualResetEvent CancelEvent)

7:34:06 PM Wednesday, December 21, 2011: [SDKSetup:Info] Config_Products_InstallNew: End installation of new product: Microsoft Windows SDK for Windows 7

7:34:06 PM Wednesday, December 21, 2011: [SDKSetup:Error] Config_Products_Install: Windows SDK Setup (failed): Installation of the "Microsoft Windows SDK for Windows 7" product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information. Stack: at SDKSetup.Product.ConfigureNewProduct(ManualResetEvent CancelEvent) at SDKSetup.Product.SetupProduct(TaskMode taskMode, ManualResetEvent CancelEvent) at SDKSetup.ProductCollection.SetupProducts(TaskMode taskMode, DownloadManager downloadManager, ManualResetEvent cancelEvent) at SDKSetup.ConfigProducts.DoCurrentTask(TaskMode Task)


The only solutions I found online were to try again after deleting the temp folder and to use the ISO installer both of which I tried. Any ideas?
twitch.tv/cratonz
Deleted_143
Profile Joined October 2010
Australia256 Posts
Last Edited: 2011-12-22 00:58:21
December 22 2011 00:50 GMT
#1982
--- Nuked ---
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
Last Edited: 2011-12-22 01:03:35
December 22 2011 00:58 GMT
#1983
On December 22 2011 01:04 green.at wrote:
Hey guy's quick question: In a 2D game with maps that are 2Darrays how would i implement multiple levels of altitude on one map. I think adding a z-axis is too wasteful, and placing smaller arrays "on top" of my ground level array seems suboptimal. any suggestions?


Make your tile have an altitude attribute?

-1 = underground
0 = ground
1 = highground
2 = sky

This is also useful if you want to check if a tank can get across that tile or not. Could use also bit shifting for better performance if that concerns you too much.
"When the geyser died, a probe came out" - SirJolt
Millitron
Profile Blog Joined August 2010
United States2611 Posts
Last Edited: 2011-12-22 01:03:56
December 22 2011 01:03 GMT
#1984
On December 22 2011 09:58 fabiano wrote:
Show nested quote +
On December 22 2011 01:04 green.at wrote:
Hey guy's quick question: In a 2D game with maps that are 2Darrays how would i implement multiple levels of altitude on one map. I think adding a z-axis is too wasteful, and placing smaller arrays "on top" of my ground level array seems suboptimal. any suggestions?


Make your tile have a altitude attribute?

-1 = underground
0 = ground
1 = highground
2 = sky

Which is basically just adding a z-axis. I don't see any way around it.

On December 22 2011 09:11 weareallclowns wrote:
Show nested quote +
On December 18 2011 14:30 Millitron wrote:
OpenGL is really good, once you get all the libraries and DLL's installed. It was kind of a pain to do on Windows 7 64 bit; it kept saying it couldn't find files that I was absolutely sure were in the right place, but once it's installed, its great.

I used Visual Studio 2007, but I wouldn't recommend it, as the IDE's built-in debugger causes more problems than it solves. For instance, it absolutely will not run anything involving image maps if you try to run it within the environment. You have to compile it and run it as a stand-alone, which can be annoying if you have to test-run it a lot.

I would suggest using Eclipse for your IDE, as its been great whenever I've used it, though to be honest, I never used it for graphical work.


Late reply, but I felt a thanks was on it's place. I will try Eclipse out.

You're very welcome. Happy I could help.
Who called in the fleet?
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
Last Edited: 2011-12-22 01:07:30
December 22 2011 01:06 GMT
#1985
What about different tile classes? WaterTile, GroundTile, SkyTile, etc... all of them implementing a common interface, for example.

No idea whats better or whats worse, just throwing some ideas.

Edit: sorry, so many edits...
"When the geyser died, a probe came out" - SirJolt
green.at
Profile Blog Joined January 2010
Austria1459 Posts
December 22 2011 01:14 GMT
#1986
yeah i was leaning towards the altitude attribute, still better than adding a z-axis. I guess I'll have to go with that.
Inputting special characters into chat should no longer cause the game to crash.
Craton
Profile Blog Joined December 2009
United States17269 Posts
Last Edited: 2011-12-22 01:19:07
December 22 2011 01:19 GMT
#1987
On December 22 2011 09:50 Klesky wrote:
Show nested quote +
On December 22 2011 09:38 Craton wrote:
I'm trying to install the Windows SDK, but the installer keeps failing. The web installer and ISO installer errors out with
A problem occurred while installing selected Windows SDK components.

Installation of the "Microsoft Windows SDK for Windows 7" product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information.

Please attempt to resolve the problem and then start Windows SDK setup again. If you continue to have problems with this issue, please visit the SDK team support page at http://go.microsoft.com/fwlink/?LinkId=130245.

Click the View Log button to review the installation log.
To exit, click Finish."


The end of the error log reads:
+ Show Spoiler +

7:33:47 PM Wednesday, December 21, 2011: SFX C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x64.exe installation started with log file C:\Users\Me\AppData\Local\Temp\Microsoft Windows SDK for Windows 7_0f09d0ba-9ef4-40fa-a294-a60754e10b4c_SFX.log

7:33:55 PM Wednesday, December 21, 2011: C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x64.exe installed successfully.

7:33:55 PM Wednesday, December 21, 2011: SFX C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x86.exe installation started with log file C:\Users\Me\AppData\Local\Temp\Microsoft Windows SDK for Windows 7_728e3a58-b902-49c8-92a6-5836d4c21324_SFX.log

7:33:58 PM Wednesday, December 21, 2011: C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x86.exe installation failed with return code 5100

7:34:06 PM Wednesday, December 21, 2011: [SDKSetup:Error] Config_Products_Install: Installation of Product Microsoft Windows SDK for Windows 7 (failed): Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information. Stack: at SDKSetup.Product.ConfigureRelatedSfx() at SDKSetup.Product.ConfigureNewProduct(ManualResetEvent CancelEvent)

7:34:06 PM Wednesday, December 21, 2011: [SDKSetup:Info] Config_Products_InstallNew: End installation of new product: Microsoft Windows SDK for Windows 7

7:34:06 PM Wednesday, December 21, 2011: [SDKSetup:Error] Config_Products_Install: Windows SDK Setup (failed): Installation of the "Microsoft Windows SDK for Windows 7" product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information. Stack: at SDKSetup.Product.ConfigureNewProduct(ManualResetEvent CancelEvent) at SDKSetup.Product.SetupProduct(TaskMode taskMode, ManualResetEvent CancelEvent) at SDKSetup.ProductCollection.SetupProducts(TaskMode taskMode, DownloadManager downloadManager, ManualResetEvent cancelEvent) at SDKSetup.ConfigProducts.DoCurrentTask(TaskMode Task)


The only solutions I found online were to try again after deleting the temp folder and to use the ISO installer both of which I tried. Any ideas?


What versions of the visual C/C++ runtimes do you have installed?

C++ is 10.0.30319 for x86 and x64, but nothing for C that I see.
twitch.tv/cratonz
MrBludgeon
Profile Joined April 2011
United States30 Posts
December 22 2011 01:37 GMT
#1988
So, I am about to finish up my B.A. in Mathematics here next semester and I plan on continuing on to graduate school (the application process was a gigantic pain in the ass). Anyway, I realized that I need to do some coding every so often and that there are probably languages better suited to my needs than java.

I don't do any finite combinatorics and very rarely do I do any computationally heavy work. However, I have found the need to graph increasingly accurate approximations of certain functions. If anyone is familiar with continuous and nowhere differentiable functions, those are the sorts of things I would want to graph. For example, I recently wrote a paper in my Analysis course and I wanted to graph an approximation the following:

[image loading]

Unfortunately, I do not know of a way to implement this. If someone knows of a language that is well suited to handle this sort of thing, feel free to let me know. My exposure to languages is rather minimal, so I really do not know how far one can go with programming. Also, I apologize if this is not the appropriate place to post this.
Deleted_143
Profile Joined October 2010
Australia256 Posts
Last Edited: 2011-12-22 01:46:15
December 22 2011 01:45 GMT
#1989
--- Nuked ---
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
December 22 2011 02:01 GMT
#1990
On December 22 2011 10:37 MrBludgeon wrote:
So, I am about to finish up my B.A. in Mathematics here next semester and I plan on continuing on to graduate school (the application process was a gigantic pain in the ass). Anyway, I realized that I need to do some coding every so often and that there are probably languages better suited to my needs than java.

I don't do any finite combinatorics and very rarely do I do any computationally heavy work. However, I have found the need to graph increasingly accurate approximations of certain functions. If anyone is familiar with continuous and nowhere differentiable functions, those are the sorts of things I would want to graph. For example, I recently wrote a paper in my Analysis course and I wanted to graph an approximation the following:

[image loading]

Unfortunately, I do not know of a way to implement this. If someone knows of a language that is well suited to handle this sort of thing, feel free to let me know. My exposure to languages is rather minimal, so I really do not know how far one can go with programming. Also, I apologize if this is not the appropriate place to post this.


MathLab: http://www.mathworks.com/products/matlab/index.html

I dont know how to code with it, so I can't help any further, but I'm pretty sure that is what you need.
"When the geyser died, a probe came out" - SirJolt
Craton
Profile Blog Joined December 2009
United States17269 Posts
December 22 2011 02:06 GMT
#1991
I uninstalled all things c++ 2010 and it made the install work.

Thanks
twitch.tv/cratonz
billy5000
Profile Blog Joined December 2010
United States865 Posts
December 22 2011 04:11 GMT
#1992
stupid question (I'm awfully new at this ><): http://introcs.cs.princeton.edu/java/11hello/UseArgument.java.html This doesn't seem to work for some reason. I'm guessing that System.out.print(args[0]); is a way to input, but an error comes up saying java.lang.ArrayIndexOutOfBoundsException: 0.
Tiger got to hunt, bird got to fly; Man got to sit and wonder, 'Why, why, why?' Tiger got to sleep, bird got to land; Man got to tell himself he understand. Vonnegut
AndyG
Profile Joined July 2010
United States22 Posts
December 22 2011 04:16 GMT
#1993
On December 22 2011 13:11 billy5000 wrote:
stupid question (I'm awfully new at this ><): http://introcs.cs.princeton.edu/java/11hello/UseArgument.java.html This doesn't seem to work for some reason. I'm guessing that System.out.print(args[0]); is a way to input, but an error comes up saying java.lang.ArrayIndexOutOfBoundsException: 0.


That is happening because you aren't running the program with any input like they show in the example. If you've followed that tutorial up to where you're at, executing using

"% java UseArgument Bob"

should work just fine. Basically, the args[] array is an array of Strings that is populated using your input after the execution command. That program tries to use the first String in that array, but since you've entered none, the print call is looking at a part of the array with nothing in it. In other words, as your error states, the array index is out of bounds.
billy5000
Profile Blog Joined December 2010
United States865 Posts
December 22 2011 05:04 GMT
#1994
Where do I exactly type in % java UseArgument Bob?
Tiger got to hunt, bird got to fly; Man got to sit and wonder, 'Why, why, why?' Tiger got to sleep, bird got to land; Man got to tell himself he understand. Vonnegut
One Student
Profile Joined April 2011
73 Posts
December 22 2011 05:49 GMT
#1995
On December 22 2011 10:06 fabiano wrote:
What about different tile classes? WaterTile, GroundTile, SkyTile, etc... all of them implementing a common interface, for example.

No idea whats better or whats worse, just throwing some ideas.

Edit: sorry, so many edits...


I remember reading a topic on game development and thought I should share what I learned.

You should do that if the differences between each tile are so big that it warrants separate classes for each. The problem with doing things like this is that in large scale games with many different objects, tiles, enemies, etc. you'll end up having loads of classes with no real functionality for each. Whereas aggregation could have solved your problem easily.

Depression is what you get for leading a repetitive life.
Craton
Profile Blog Joined December 2009
United States17269 Posts
December 22 2011 07:17 GMT
#1996
I've been trying to make a simple c# program that can read the currently playing song from windows media player (not an embedded object), but damn if that isn't a lot harder than I expected.

It'd probably be quicker to just learn c++ -_-
twitch.tv/cratonz
simmion
Profile Joined June 2011
United States34 Posts
December 22 2011 16:22 GMT
#1997
On December 22 2011 14:04 billy5000 wrote:
Where do I exactly type in % java UseArgument Bob?



From your command prompt. in the same folder as UseArgument.class

C:\files\UseArgument.java

eg.
C:\files\: javac UseArgument.java
C:\files\: java UseArgument argument
"Ricky Bobby" -stephano
green.at
Profile Blog Joined January 2010
Austria1459 Posts
December 22 2011 22:16 GMT
#1998
for the record, quadtrees are female dogs '-.-
Inputting special characters into chat should no longer cause the game to crash.
HowitZer
Profile Joined February 2003
United States1610 Posts
December 22 2011 23:50 GMT
#1999
On December 22 2011 16:17 Craton wrote:
I've been trying to make a simple c# program that can read the currently playing song from windows media player (not an embedded object), but damn if that isn't a lot harder than I expected.

It'd probably be quicker to just learn c++ -_-




C# and .NET should make that easier to do than trying to use C++ especially if you are a C++ newb.
Human teleportation, molecular decimation, breakdown and reformation is inherently purging. It makes a man acute.
tofucake
Profile Blog Joined October 2009
Hyrule19158 Posts
December 22 2011 23:53 GMT
#2000
To do that in C++ will require you to know some basic things like hooking processes and using various API calls. I'm pretty sure it's easier in C#.
Liquipediaasante sana squash banana
Prev 1 98 99 100 101 102 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 4h 22m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 254
PiLiPiLi 4
EnDerr 1
StarCraft: Brood War
PianO 431
Sexy 49
NaDa 31
Leta 26
Noble 18
Dota 2
NeuroSwarm101
canceldota27
LuMiX1
League of Legends
JimRising 599
Super Smash Bros
C9.Mang0305
Other Games
summit1g14434
fl0m648
WinterStarcraft410
ViBE173
Trikslyr68
kaitlyn33
ToD16
Organizations
Other Games
gamesdonequick884
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Hupsaiya 108
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Azhi_Dahaki33
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota22294
League of Legends
• Doublelift4785
• Rush1019
Other Games
• Scarra1347
Upcoming Events
RSL Revival
4h 22m
Classic vs MaxPax
SHIN vs Reynor
herO vs Maru
WardiTV Korean Royale
8h 52m
SC Evo League
9h 22m
IPSL
13h 52m
Julia vs Artosis
JDConan vs DragOn
OSC
13h 52m
BSL 21
16h 52m
TerrOr vs Aeternum
HBO vs Kyrie
RSL Revival
1d 4h
Wardi Open
1d 10h
IPSL
1d 16h
StRyKeR vs OldBoy
Sziky vs Tarson
BSL 21
1d 16h
StRyKeR vs Artosis
OyAji vs KameZerg
[ Show More ]
OSC
1d 19h
OSC
2 days
Monday Night Weeklies
2 days
OSC
2 days
Wardi Open
3 days
Replay Cast
4 days
Wardi Open
4 days
Tenacious Turtle Tussle
4 days
The PondCast
5 days
Replay Cast
5 days
LAN Event
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-11-16
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.