generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

SFML problems.

Previous Thread :: Next Thread 
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
09 Apr 2012 01:50 PM
We (le me + le su8) are gettings errors from the SFML thingy, while it worked in another project.
It has to do with the File includment (#include "SFML/blahblah")...IT'S ANNOYING AND WE ARE STARTING TO HATE SFML :c (A
Report Abuse
Multidimensional is not online. Multidimensional
Joined: 05 Apr 2012
Total Posts: 866
09 Apr 2012 02:02 PM
it would be easier if you posted the actual error you are receiving. we cant fix it if you are not specific, blah blah blah, doesnt help
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
09 Apr 2012 02:10 PM
Like I said, it says that SFML is undefined/undetectable, but I located all the paths and stuff.
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
09 Apr 2012 02:14 PM
And it worked on le other project.. :/
Report Abuse
Legend26 is not online. Legend26
Joined: 08 Sep 2008
Total Posts: 10586
09 Apr 2012 02:29 PM
You probably set it up incorrectly.
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
09 Apr 2012 02:31 PM
But.. For the third time it worked on le other project qq
Report Abuse
Legend26 is not online. Legend26
Joined: 08 Sep 2008
Total Posts: 10586
09 Apr 2012 02:32 PM
Yea well you didn't set this particular one up correctly.

Can't say anything else. Not enough info.
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
09 Apr 2012 02:36 PM
Did you link the necessary .lib files to the project?
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
09 Apr 2012 02:43 PM
@legnd: I'll try that tommorow.

@local: Yus.
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
09 Apr 2012 02:47 PM
Btw, there was also something about Game.GetEvent(), wich didn't work, but it did in le tutorial vid.

Y EET NUH WORKS (be quatre-checked the script, but everything was the same, including Capatalization, semi-colons..everything QQ)
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
09 Apr 2012 03:42 PM
You set the project up wrong. What actually is the error when you compile it
Report Abuse
myrkos is not online. myrkos
Joined: 06 Sep 2010
Total Posts: 8072
09 Apr 2012 07:49 PM
Compiler? IDE? Specific errors?

we need that info bois
Report Abuse
miloguy is not online. miloguy
Joined: 19 Dec 2009
Total Posts: 7702
09 Apr 2012 08:51 PM
I hate C++ only because of all the including and linking you have to do to set up a simple graphics library
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
10 Apr 2012 12:12 AM
Well.. We kinda like solved le problem :P
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
10 Apr 2012 07:09 AM
I hate C++ because linking the libraries and stuff always takes long as i have to figure out what files go where and how do i even get those files (WAT R MAKEFIL UMG Y IT NO DO THING) and because i always get fancy template/declaration/definition/watever issues that get fixed by some random thing i found after googling for hours.
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
10 Apr 2012 07:17 AM
"(WAT R MAKEFIL UMG Y IT NO DO THING) "

you gotta get something to make it work on non unix stof

personally i give up as soon as i see 'makefile'
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
10 Apr 2012 07:22 AM
I wish there were some/was a GL(s) build into the IDEs.
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
10 Apr 2012 07:40 AM
I think i used makefile in SFML, had to download dat stoopid program and set 9001 parameters and do it twice to get it work properly, and even then i didnt know if i was supposed to use it only for debugging and wether it was dll or a normal lib >.<
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
10 Apr 2012 07:41 AM
@radio: Exactly the same.
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
10 Apr 2012 07:41 AM
"I think i used makefile in SFML,"

you mean cmake?
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
10 Apr 2012 08:00 AM
We linked the stuff, and compiled it, and we got thse errors:

Warning 1 warning C4832: token '.' is illegal after UDT 'sf::Event' c:\users\myrco\documents\lesfmltest\lesfmltest\main.cpp 13 1 leSFMLtest

Error 2 error C2275: 'sf::Event' : illegal use of this type as an expression c:\users\myrco\documents\lesfmltest\lesfmltest\main.cpp 13 1 leSFMLtest

Error 3 error C2228: left of '.Closed' must have class/struct/union c:\users\myrco\documents\lesfmltest\lesfmltest\main.cpp 13 1 leSFMLtest

The code is :


#include "SFML/Graphics.hpp" // the orginal code uses arrows
#include "SFML/Window.hpp"

int main()
{
sf::RenderWindow Game(sf::VideoMode(800,600,32), "SFML Blank Window");
sf::Event Event;

while (Game.isOpen())
{
while (true)
{
if (Event.type == sf::Event.Closed)
Game.close();
}

Game.clear();
Game.display();
}
return 0;
}

Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
10 Apr 2012 08:01 AM
Sorry it should be

while (Game.GetEvent(Event))
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
10 Apr 2012 08:01 AM
4 IntelliSense: class "sf::RenderWindow" has no member "GetEvent" c:\users\myrco\documents\lesfmltest\lesfmltest\main.cpp 9 14 leSFMLtest
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
10 Apr 2012 09:03 AM
/bump.
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
10 Apr 2012 09:08 AM
Y thou no reply :(
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 2Go to page: [1], 2 Next
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image