Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Thor > Visual Studio > Particle example file > No Particles drawn.  (Read 5008 times)

0 Members and 1 Guest are viewing this topic.

magneonx

  • Full Member
  • ***
  • Posts: 141
    • MSN Messenger - magnumneon04@hotmail.com
    • View Profile
Thor > Visual Studio > Particle example file > No Particles drawn.
« on: September 17, 2014, 07:16:57 am »
So I copy pasted example codes to my configured project in Visual Studio 13. All is fine but when I ran the example codes I don't see any particles. I am using exploiter's build as suggested on my post on SFML. I am using his build since I am not able to build master versions of SFML and Thor from source.

The codes I am doing is the Particle example provded along in the bundle. I will not copy paste them here. I did not do any modification, just copied it and run. I only see the text and can only see the texture if drawn using sf::Sprite.

Do you think I missed something?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10835
    • View Profile
    • development blog
    • Email
AW: Thor > Visual Studio > Particle example file > No Particles drawn.
« Reply #1 on: September 17, 2014, 07:23:28 am »
Do you have a console window open? Does it show any errors?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

magneonx

  • Full Member
  • ***
  • Posts: 141
    • MSN Messenger - magnumneon04@hotmail.com
    • View Profile
Re: Thor > Visual Studio > Particle example file > No Particles drawn.
« Reply #2 on: September 18, 2014, 04:32:58 am »
Hi,

The console never spits any error. It just run. But I can't see the particles. Though I can see the particles on the example binaries. Please help. I will be needing Thor badly soon.


magneonx

  • Full Member
  • ***
  • Posts: 141
    • MSN Messenger - magnumneon04@hotmail.com
    • View Profile
Re: Thor > Visual Studio > Particle example file > No Particles drawn.
« Reply #3 on: September 18, 2014, 06:28:37 am »
This what Visual Studio C++ output shows
'Sample Thor2.exe' (Win32): Loaded 'C:\Users\Neon Warge\Documents\Visual Studio 2013\Projects\Sample Thor2\Debug\Sample Thor2.exe'. Symbols loaded.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\libraries\SFML\build\branches\SFML-eXpl0it3r-build-vs2013-x86\bin\sfml-system-d-2.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\lpk.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\usp10.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120d.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp120d.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\libraries\SFML\build\branches\SFML-eXpl0it3r-build-vs2013-x86\bin\sfml-graphics-d-2.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\libraries\SFML\build\branches\SFML-eXpl0it3r-build-vs2013-x86\bin\sfml-window-d-2.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\opengl32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\glu32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ddraw.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dciman32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Users\Neon Warge\Documents\Visual Studio 2013\Projects\Sample Thor2\Debug\thor.dll'. Module was built without symbols.
'Sample Thor2.exe' (Win32): Loaded 'C:\libraries\SFML\build\branches\SFML-eXpl0it3r-build-vs2013-x86\bin\sfml-graphics-2.dll'. Module was built without symbols.
'Sample Thor2.exe' (Win32): Loaded 'C:\libraries\SFML\build\branches\SFML-eXpl0it3r-build-vs2013-x86\bin\sfml-window-2.dll'. Module was built without symbols.
'Sample Thor2.exe' (Win32): Loaded 'C:\libraries\SFML\build\branches\SFML-eXpl0it3r-build-vs2013-x86\bin\sfml-system-2.dll'. Module was built without symbols.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp120.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nvinit.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\_etoured.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\Nvd3d9wrap.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\nvdxgiwrap.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Program Files (x86)\RocketDock\RocketDock.dll'. Module was built without symbols.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\psapi.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Program Files (x86)\Lenovo\Onekey Theater\ActiveDetect32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Program Files (x86)\Lenovo\Onekey Theater\WindowsApiHookDll32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Cannot find or open the PDB file.
The thread 0x29dc has exited with code 0 (0x0).
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ig7icd32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dinput.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\hid.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wintrust.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\crypt32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msasn1.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll'
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file.
'Sample Thor2.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll'
'Sample Thor2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\clbcatq.dll'. Cannot find or open the PDB file.

 

I don't know what it means but I hope it helps. I got this error from Output in Visual Studio Debugger.

magneonx

  • Full Member
  • ***
  • Posts: 141
    • MSN Messenger - magnumneon04@hotmail.com
    • View Profile
Re: Thor > Visual Studio > Particle example file > No Particles drawn.
« Reply #4 on: September 18, 2014, 06:50:04 am »
So I ran another example of yours and copy pasted it to my sample thor project. I got this console errors. I think this is what you are talking about? I got this from fireworks example:

I attached them here. I don't know how to insert image :P.

Can you please check this out for me?

I also got this error on your example: Shapes. Let me know if you need me to perform something on my Visual Studio. I am afraid we are not on the same time zone so I think it is best to leave me an email as well? I could answer you there. I am available at 12 noon EST to 2am EST
« Last Edit: September 18, 2014, 06:53:54 am by magneonx »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10835
    • View Profile
    • development blog
    • Email
AW: Thor > Visual Studio > Particle example file > No Particles drawn.
« Reply #5 on: September 18, 2014, 08:08:46 am »
What GPU do you have? Is your driver uptodate?

So you say my particle example runs fine, but the same code compiled by you doesn't?

Can you provide the full build command? http://en.sfml-dev.org/forums/index.php?topic=12552.0
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

magneonx

  • Full Member
  • ***
  • Posts: 141
    • MSN Messenger - magnumneon04@hotmail.com
    • View Profile
Re: Thor > Visual Studio > Particle example file > No Particles drawn.
« Reply #6 on: September 18, 2014, 08:17:40 am »
Hi so I tried to download your earlier build dated 2014-04-09 for both SFML and Thor and I got this error:
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call.  This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.

Yes I will try to post the full command build now.

Here is the output of your build dated  2014-04-09 take note that this is not your latest build.

1>------ Rebuild All started: Project: Sample Thor2, Configuration: Debug Win32 ------
1>  Microsoft (R) C/C++ Optimizing Compiler Version 18.00.30723 for x86
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1>  
1>  cl /c /I"C:\libraries\SFML\build\branches\SFML-eXpl0it3r-build-vs2013-x86\include" /I"C:\libraries\Thor\build\branches\Thor-eXpl0it3r-build-vs2013-x86\include" /ZI /W3 /WX- /sdl /Od /Oy- /D THOR_STATIC /D _MBCS /D _MBCS /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt main.cpp
1>  
1>  main.cpp
1>  Microsoft (R) Incremental Linker Version 12.00.30723.0
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1>  
1>  "/OUT:C:\Users\Neon Warge\Documents\Visual Studio 2013\Projects\Sample Thor2\Debug\Sample Thor2.exe" /INCREMENTAL "/LIBPATH:C:\libraries\SFML\build\branches\SFML-eXpl0it3r-build-vs2013-x86\lib" "/LIBPATH:C:\libraries\Thor\build\branches\Thor-eXpl0it3r-build-vs2013-x86\lib" "sfml-system-d.lib" "sfml-graphics-d.lib" "sfml-window-d.lib" "sfml-audio-d.lib" "sfml-network-d.lib" "thor-d.lib" thor.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST "/MANIFESTUAC:level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG "/PDB:C:\Users\Neon Warge\Documents\Visual Studio 2013\Projects\Sample Thor2\Debug\Sample Thor2.pdb" /TLBID:1 /DYNAMICBASE /NXCOMPAT "/IMPLIB:C:\Users\Neon Warge\Documents\Visual Studio 2013\Projects\Sample Thor2\Debug\Sample Thor2.lib" /MACHINE:X86 Debug\main.obj
1>  Sample Thor2.vcxproj -> C:\Users\Neon Warge\Documents\Visual Studio 2013\Projects\Sample Thor2\Debug\Sample Thor2.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
 

My laptop specs are:

Intel Core i7
Nvidia GT640m 2gb VRAM
Driver 340.52
4gb RAM

EDIT:
Also I downloaded the 32 bit version that works for Visual Studio 2013.

« Last Edit: September 18, 2014, 08:25:22 am by magneonx »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10835
    • View Profile
    • development blog
    • Email
AW: Thor > Visual Studio > Particle example file > No Particles drawn.
« Reply #7 on: September 18, 2014, 08:28:19 am »
You're linking both the debug and release version of Thor.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

magneonx

  • Full Member
  • ***
  • Posts: 141
    • MSN Messenger - magnumneon04@hotmail.com
    • View Profile
Re: Thor > Visual Studio > Particle example file > No Particles drawn.
« Reply #8 on: September 18, 2014, 08:36:43 am »
I wanted to link just debugging and link to release for future. How am I suppose to this? How can I fix this?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10835
    • View Profile
    • development blog
    • Email
AW: Thor > Visual Studio > Particle example file > No Particles drawn.
« Reply #9 on: September 18, 2014, 08:54:38 am »
VS has by default settings for debug and release. You simply add the debug libs to the debug settings and the release to the release settings, so you can simply switch the modes.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

magneonx

  • Full Member
  • ***
  • Posts: 141
    • MSN Messenger - magnumneon04@hotmail.com
    • View Profile
Re: Thor > Visual Studio > Particle example file > No Particles drawn.
« Reply #10 on: September 18, 2014, 08:58:33 am »
I am really frustrated by now. I think because this fail the time I need it the most! This is really eats up a lot of my time. I need to finish my project 100% this month and this just getting on my way.

so having said I am linking both the debug and release version of thor then would I suppose to link on just debug version?

I am so sorry if I am little uneducated with this release and debug modes. I just got over with dynamic and static linking. I don't even know its possible to link on both modes! I mean c'mon who does that? Now you said I did, I am shock and confused. It is a mode in most IDE I never change. I always compile my codes on DEBUG. Now I have to deal with debug and release. I needed to link on debug config.

Please help me fix this problem.

magneonx

  • Full Member
  • ***
  • Posts: 141
    • MSN Messenger - magnumneon04@hotmail.com
    • View Profile
Re: Thor > Visual Studio > Particle example file > No Particles drawn.
« Reply #11 on: September 18, 2014, 09:24:44 am »
Alright nvm I got it to work. I just started a new project and reconfigured it, used the sames steps from the previous project but did it only for Debug Modes. I replace the settings of the previous project with the one that works but still the same thing. I can continue my work tomorrow. I am afraid that the project I am working on right now will experience the same dilemma.

Thanks eXpl0it3r for pointing out my mistakes. You've been a great help!

 

anything