SgtMe 46 Veteran Poster Featured Poster

A7X :D:D:D A little piece of heaven :D

SgtMe 46 Veteran Poster Featured Poster

stonehenge -> druid

SgtMe 46 Veteran Poster Featured Poster

Update:
Clean install of latest nVidia drivers. Problem still persists. Re-installed one game that doesn't work. Still doesn't work.

SgtMe 46 Veteran Poster Featured Poster

<DOES ... COUNT?!>

Part 4:
Then, the magical potato

SgtMe 46 Veteran Poster Featured Poster

Update:
Ran 3DMark06 with normal settings. Didn't have the payed-for version so didn't tell me my computer was running as it should, but it worked. Now I'm going to see if games do work again. If not, I'll update the drivers (clean install).

SgtMe 46 Veteran Poster Featured Poster
SgtMe 46 Veteran Poster Featured Poster

that fizzled stuff.

SgtMe 46 Veteran Poster Featured Poster

yar har...i am a pirate...bein' a pirate is alright to be.

SgtMe 46 Veteran Poster Featured Poster

Update: phoned the company that built my PC. Guy said he wasn't sure what it was, but I have received instructions:
1.) Make sure that the old Intel integrated graphics chipset is still disabled in the BIOS
2.) Continue with the plan to run the 3D benchmark software, or at least try to.
3.) Uninstall Nvidia drivers and software. Reinstall laters drivers from website.

SgtMe 46 Veteran Poster Featured Poster

OK I will soon. Thanks. It's not a problem with the game installation as all games don't run.

SgtMe 46 Veteran Poster Featured Poster

Sorry I can't do anything that involves opening the computer case, as I'll void the warranty. Doesn't seem too warn but I'll check the temperature. Games don't work even if I start the PC from cold (10hrs+ rest).

SgtMe 46 Veteran Poster Featured Poster

Well that wouldn't affect the 3D games. I looked at the memory monitor in the task manager program and it looks fine in there, and everything still realises that I have 4Gb. It may solve the bluescreen, but that hasn't come back yet. I'd rather not install the whole OS again...

SgtMe 46 Veteran Poster Featured Poster

Just as an after-thought: type "lol limewire" into google and hit "I'm feeling lucky"... :L

Ancient Dragon commented: LOL :) +0
SgtMe 46 Veteran Poster Featured Poster

No it's not a specific problem. You should use:

root.minsize(min_x, min_y)
root.maxsize(max_x, max_y)

Also, use code tags. If you want the window to be a fixed size, I just set the minimum and maximum as the same. I've got a youtube video explaining stuff about Tkinter windows. Infact, I have a whole 10 video tutorial series to help people with Tkinter.

Tutorial 1: (click the links on the right to find the next ones)
http://www.youtube.com/watch?v=46FVOXPXAcY

Tk window tutorial: (the bit you want is at 3:20)
http://www.youtube.com/watch?v=Anrl1HX2ZHI


Hope this helps! (If so, please upvote!)

SgtMe 46 Veteran Poster Featured Poster

If I were you, I would have started out with Blender before using 3DSmax, seeing as max costs so much. Being a blender user, I would say blender, but that's a biased opinion. Tell you what: set yourself a task, like modeling a gun. Try to not to use a tutorial. See which program was easier for you and which model came out better.

darkagn commented: Excellent advice +4
SgtMe 46 Veteran Poster Featured Poster

It might, but it could attract new members. I'm sure there are more 3D modelers knocking around here than we think...

SgtMe 46 Veteran Poster Featured Poster

Update: Further system restore. MSN is working most of the time. Tried to load Medal Of Honor this morning. It loaded the splash screen and then froze (slightly better :/). I also got a BSoD a minute ago. Here is the full blue screen error.
http://www.faultwire.com/solutions-fatal_error/CACHE_MANAGER-0x00000034-*1067.html

SgtMe 46 Veteran Poster Featured Poster

I don't get what is wrong with using tabs. It makes sure everything is aligned evenly and is very quick compared to space bar...

SgtMe 46 Veteran Poster Featured Poster

A simple google search turned up this link:
http://code.google.com/p/jbullet-jme/wiki/InstallingBuilding

SgtMe 46 Veteran Poster Featured Poster

what do you need help with exactly?

SgtMe 46 Veteran Poster Featured Poster

You need to edit the indents because there are some tabs and some spaces, and they are not all aligned. My advice would be to delete the whitespace on each line and then tab it out the appropriate number of times. Using tab is alot quicker and easier than using spaces.

SgtMe 46 Veteran Poster Featured Poster

Well it's the same strategy. You still need to count up with integers and convert to a string at the end. You should only need one loop for all that. Don't forget your ifs for all the columns as in my above post. If you want to keep it simple just have the loop with time.sleep(), but again you could sync it with real time for more accuracy.

SgtMe 46 Veteran Poster Featured Poster

Well start by allowing the user to input how much time they want to count down. Convert each section (hours, mins etc.) into an int so that you can count it down. Count down by 0.1 seconds (use ifs to find if one column equals 0, in which case it will become 9, and take 1 off the next column), convert the numbers back into a string, print, sleep (0.1). Repeat until all sections equal zero. Seeing as it takes a few milliseconds to execute each line of code, you may want to correlate your timer with real time. Consider using a separate module (maybe datetime?) to get the current time, and then you can synchronise your timer with what it should be to prevent it going out of step. This should only need to be done every few seconds.

SgtMe 46 Veteran Poster Featured Poster

Well if we introduce a "3D section" to the game dev forum, or at least publicise that it's open to 3D topics, we may get a bit of interest. We could announce it on things like the blender artists forums...

SgtMe 46 Veteran Poster Featured Poster

it caused a

SgtMe 46 Veteran Poster Featured Poster

Oh OK sorry I misunderstood that bit (brain's-built-in-compiler-error-passed-as-silent).

SgtMe 46 Veteran Poster Featured Poster

Here's a little program I wrote for you using stringstream. This will split your long string into 20 parts, into an array (type string), named "data".

//includes...need sstream (stringstream)
#include <string>
#include <sstream>
#include <iostream>
//don't forget your namespaces
using namespace std;

/main
int main()
{
    //your string
    string str = "105:1:CME,20100601,07:34:22.796,GRC,GE,201009,FUT,XGGRC,0G4LHZ013,14ijpol1vsu7l7,Fill,0000D9DB,B,00000,99.155,2,99.155,20100601,07:27:34";
    //declare array for output from split
    string data[20];
    
    
    //create the stream using your string above
    stringstream stream(str);
    //loop repetition value
    int i = 0;
    //loop to split string
    while(getline(stream, data[i], ',') )
    {
        //increase repetition number
        i++;
    }
    
    
    //loop repition value
    int j = 0;
    //print output
    while (j<20){cout<<data[j]<<endl;j++;}
    //pause so we can read
    system("Pause");
}

For writing into a struct, take a look at this page:
http://www.cplusplus.com/doc/tutorial/structures/

Ask me if you need further help :)

SgtMe 46 Veteran Poster Featured Poster

Firstly, you have you have this line wrong:

while (quantity >50);

Surely it should be '<' instead?

Reply, but paste in:
Any program errors.
Your inputs.
Expected outputs.
Actual outputs.

SgtMe 46 Veteran Poster Featured Poster

potato. The darkness

SgtMe 46 Veteran Poster Featured Poster

If you want some ideas, look at this thread:
http://www.daniweb.com/forums/thread32007.html
Otherwise, search sourceforge.net! You can look for programs using YOUR programming language, YOUR os and YOUR type (games, software etc.). If you don't find anything you like, start a new project! PM me if you find a project to join/start a project as I'd like to join one too.

SgtMe 46 Veteran Poster Featured Poster

Check out my post here for how you could expand on your program.
http://www.daniweb.com/forums/thread32007-24.html

SgtMe 46 Veteran Poster Featured Poster

I know that it's not really related to programming and hardware (which is what the rest of the site seems to be), but I think it would be great if we could create a 3D modeling or visual effects forum. Maybe even just one forum for all 3D modeling programs? There are dedicated forums for all of the programs already, but there are already dedicated C++ forums, for example. That didn't stop this C++ getting to the top.

Thoughts?

SgtMe 46 Veteran Poster Featured Poster

Hello! Welcome to Daniweb! You'll love it here because the C++ forum is one of the biggest forums on this site, and is certainly the best C++ forum on the internet. And Java is close behind it! I guess we'll be seeing eachother around in the C++ forum a little bit :)

SgtMe 46 Veteran Poster Featured Poster

Right now? "Ace Of Spades" - Motorhead.
Far from my usual Slipknot and FFDP :L

SgtMe 46 Veteran Poster Featured Poster

For things such as darker clothes, you could just use a new texture for the clothes. If you could keep the clothes as a seperate object from the body, then you could easily just make progressively darker textures, and load each one. You would only need a few to go from dry to wet. To get a better idea of what would happen, think about what happens when your out in the rain. You walk slower to avoid slipping, your clothes may get wet, your hair gets wet and flops down. Also consider the visual effect. Wet clothes are darker, but clothes such as a coats or things with a protective coating may glisten in the sun instead. Look up specular maps on google.

These are just examples of some of the things that happen, but there are many more. It really depends what level of realism and detail you would like to hit.

Good luck :)

SgtMe 46 Veteran Poster Featured Poster

Hmmm...now I'm thinking about it, it would be a hell of a lot easier to put all the GUI stuff in one file. I'd say that anything you had with your root (buttons, labels etc.) should all go in the one file. Then you could put your program logic in a different script. It really depends what your doing, but that is the easiest way.

SgtMe 46 Veteran Poster Featured Poster

Write simple theatre booking system. Start off by just using the console, then possibly moving on to GUI. Similarly, start off storing your data in text files, then move on to using proper database modules. Don't put yourself under too much pressure either! Just have a simple system that lets you book or unbook seats. Then add features such as: multiple performances and ticket types (Adult, Child, Discount). Also, you could make a console-GUI, where you use ASCII characters to create squares for seats, with the seat numbers in them. Then, use [A][C][D} to show which seats are taken and by who.

Tips:
Start simple. Don't have too many seats at the beginning. 3 rows of 5 max.
Sort out file storage. Data retrieval is important. Make sure you have a simple input output.
Use loops for loading the dater from a file. This means you can repeat many times.
Use loops elsewhere in your program to cut down on how much code you have.

bumsfeld commented: nice idea +7
e-papa commented: good +6
SgtMe 46 Veteran Poster Featured Poster

Firstly:
Thanks for the effort you've put in.

Secondly:
I've made you a little program to demonstrate rounding, using floor() and ceil() [needs cmath, but you already have that]. Here's the code:

//Usual intro :P
#include <cstdlib>
#include <iostream>
#include <cmath>
using namespace std;

//Usual main...
int main(int argc, char *argv[])
{
    //a will be rounding result, x will be float to round
    int a;
    float x;
    
    //get input
    cout<<"Enter float for 'x'"<<endl;
    cin>>x;
    
    //if x + 0.5 is less than x rounded up, decimal place must be less than (.)5
    if ((x+0.5)<ceil(x)){a = floor(x);}
    else{a = ceil(x);}
    
    //print results and pause to view...
    cout<<"You entered:    "<<x<<endl;
    cout<<"Result:         "<<a<<endl;
    system("pause");
    
    //usual return. finito
    return 0;
}

Read through the comments to get the gist of what I'm doing. I have seen some older threads on various C++ forums where people do horrible, long, complicated thingamajigs. This is just a short simple program, and you only need a few lines of it anyway!

Example outputs:

Enter a float for 'x'
[eg.] 23.2
You entered: 23.2
Result: 23

Enter a float for 'x'
[eg.] 18.6758284
You entered: 18.6
Result: 19

Note:
You cannot change the precision with this method, so you can't round, say, 123.34934 to 123.35. There are other methods of doing this, but for a simple graphing program you should only need ints.

Hope this helps. Just reply in this thread if you need …

SgtMe 46 Veteran Poster Featured Poster

Update: System restore to two nights ago, when everything was normal. MSN is fixed! Still can't play games. All (commercial/decent) 3D games won't run, also Cortex Command doesn't run. It's a 2D game but it uses lots of particle simulation. I have also noticed that my computer hasn't been performing as well as it used to. It boots up in the same time, but once I've logged on, it takes ages to load my icons and any programs opened in the first 3-4 minutes will be slow.

SgtMe 46 Veteran Poster Featured Poster

Hi.

Not had any problems up until this point. I changed some settings on services earlier, and then I noticed this problem: whenever I try to open a 3D game, the program will freeze. I have opened 3D programs like Blender3D and Quick3D fine, but games don't work. Assuming it was these settings, I did a system restore to just before I changed the settings (luckily the restore point had been made during a windows update, I think). I ran system restore to this point, but that didn't work.

In a minute I will run system restore to an earlier point (if it's fairly recent), and see if that solves it. However, I reopened the "Services" and "Features" settings programs in Windows, which reported that the settings were reverted, but the problem remained.

Also, when I open MSN Messenger (standard msnmessenger.exe), it won't open. I double click on it, it starts to open, then randomly stops completely, without reporting any errors. I need urgent help with this problem!

Specs:

CPU: Intel Quad-Core (4 processors) at 2.50Ghz (each)
RAM: 4GB DDRD
GPU: nVidia GeForce GT240 512Mb
OS: Windows 7 Home-Premium 64-bit edition

Thanks for your time :)
Mark

SgtMe 46 Veteran Poster Featured Poster

OK if you really need it I'll try and find time to do it sometime soon. Yes we tried updating all the drivers already.

SgtMe 46 Veteran Poster Featured Poster

Am I getting this wrong or do you need to import ttk again in your new script? Also, root isn't defined in the second script. I would give you an example, but I gotta go now and I'll do it for you later :)

SgtMe 46 Veteran Poster Featured Poster

Oh yes it's perfectly possible! Make sure your external script is in the same folder as your main file, then just use "import example.py" (if that doesn't work remove the ".py"). Just make sure your variables can interact between the two scripts.

SgtMe 46 Veteran Poster Featured Poster

Errr...I'll have a go. It might be difficult, seeing as there are a million other things that could go wrong instead of the BSoD. There's plenty of information on the ATI2dvag infinte loop BSoD and Physical Dump of Memory BSoD on google. I would give you a link but I don't know what bits of info you need.

SgtMe 46 Veteran Poster Featured Poster

Yeah. Full unistall, reinstall, driver reinstall, driver rollback, driver update.

SgtMe 46 Veteran Poster Featured Poster

Hi there.

My Mum's laptop is practically unusable. It will work for anywhere between 20 and 80 minutes, and then one (or even a combination) of the following will happen.

a.) Blue-screen of death (BSoD): Physical dump of memory
b.) ATI graphics card driver will crash, screen resolution drops to 640x480, possible BSoD (ATI2dvag infinite loop)
c.) Random restart

Have had this problem for a while now and not sure what to do. I believe that the BSoD is caused by the ATI driver crashing, though sometimes the graphics card will crash, and their will be no BSoD, or we will get a BSoD before it has crashed (or at least we don't get a chance to see that it has crashed). More recently, the laptop has been restarting itself randomly, which will repeat several times continously (restart, boot, restart, boot, restart, boot etc.). This happens rarely, though.

Not sure what all the specs are but I think it's a little bit like this (I'll boot it up later to get the full config).

Intel Dual Core processor (I think 3GHz)
Not sure how much RAM
Windows XP (SP2)
ATI Graphics card (not sure which, will find out later)

I have the install disc for Windows XP, so I am prepared to format the disks and wipe it clean (though this would have to wait a bit, until we have a laptop that my mum can borrow).

If …

SgtMe 46 Veteran Poster Featured Poster

Each program needs to have a main function. You do have one, but this happened to me before. Not sure how I dealt with it :/ Try capitalizing the 'm' on main so it becomes 'Main'. Apart from that, have a look on google. It's quite a common problem.

BTW:
please don't put a title saying 'help'. If you put the error code, or the end bit, we will be more likely to help. Lucky I have the bother to look at these posts ;)

SgtMe 46 Veteran Poster Featured Poster

With the tables are you just going to use whitespace? Just edit the string output of your average function or however its done. Ask for help if you need :)

SgtMe 46 Veteran Poster Featured Poster

OK i guess i was a little harsh :( I'm just sick of the fact that no-one pays attention to anything these days :@

SgtMe 46 Veteran Poster Featured Poster

what code have you got already? None? Shame...we won't help.