Am I coding this right?

  • pilojo
    1st Nov 2010 Member 0 Permalink
    pilojo
    you have to link them look at the wiki. edit: Your names john?
  • Neospector
    1st Nov 2010 Member 0 Permalink
    Nah my dad is.
  • pilojo
    1st Nov 2010 Member 0 Permalink
    Neospector
    Oh, I was about to say mine is too.
  • Neospector
    1st Nov 2010 Member 0 Permalink
    Noticed that on the download.
  • pilojo
    1st Nov 2010 Member 0 Permalink
    Neospector
    You get it fixed? It's just a small little linker error.
  • Neospector
    1st Nov 2010 Member 0 Permalink
    Not sure...not sure which file I'm supposed to link it to. There's five "Neospector's mod" and they're all different files.
  • pilojo
    1st Nov 2010 Member 0 Permalink
    Neospector
    no no no go into visual studio and open your project. Then open any of the .h or .c files and under "Project" go to "(mod name)'s Properties" and in there you'll see "Configuration Properties". Double click that. Then you will see "VC++ Directories". Click on that. To the right of that, you will see "Include Directories" Drop the menu down and hit edit. Put...C:\Users\Pilon\Documents\Downloads\TPT source\libraries in my case. Change the path to wherever yours is. Then add a second one saying C:\Users\Pilon\Documents\Downloads\TPT source\includes doing the change to the path. Then back over at the left you will see "Linker". Double click that. Then click "Input". To the right again you will see "Additional Dependencies" Drop down the menu and hit edit. Put shell32.lib
    ws2_32.lib
    wsock32.lib
    C:\Users\Pilon\Documents\Downloads\TPT source\libraries\SDL.lib
    C:\Users\Pilon\Documents\Downloads\TPT source\libraries\SDLmain.lib
    C:\Users\Pilon\Documents\Downloads\TPT source\libraries\libbz2.lib

    Again, changing the path. As this is my setup. After that you should be fine.
  • Neospector
    1st Nov 2010 Member 0 Permalink
    Still didn't work. Libraries is one of your folders? I have Debug (which includes the DLL files) and ipch which is empty.
    I keep getting the same error, it can't find the files.
  • pilojo
    1st Nov 2010 Member 0 Permalink
    Neospector
    Oh. One sec. I'm going to give you the link for that.

    Edit: https://powdertoy.co.uk/Download/Source-Required.zip
  • Neospector
    1st Nov 2010 Member 0 Permalink
    Ever realize this has only been the two of us talking, except for antb's one post?
    Lol I'll try it.
    EDIT: Got a weird error:
    1>------ Build started: Project: Neospector's Mod, Configuration: Debug Win32 ------
    1> powder.c
    1>powder.c(195): error C2065: 'PT_STEL' : undeclared identifier
    1>powder.c(263): warning C4244: 'initializing' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(264): warning C4244: 'initializing' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(300): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(301): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(302): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(303): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(305): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(306): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(307): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(308): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(310): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(311): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(312): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(313): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(315): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(316): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(317): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(318): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(439): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
    1>powder.c(449): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(706): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(822): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(1187): warning C4305: '*=' : truncation from 'double' to 'float'
    1>powder.c(1188): warning C4305: '*=' : truncation from 'double' to 'float'
    1>powder.c(1249): warning C4305: '*=' : truncation from 'double' to 'float'
    1>powder.c(1250): warning C4305: '*=' : truncation from 'double' to 'float'
    1>powder.c(1531): warning C4305: 'initializing' : truncation from 'double' to 'float'
    1>powder.c(1544): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(1545): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(1546): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(1547): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(1553): warning C4244: '+=' : conversion from 'double' to 'float', possible loss of data
    1>powder.c(1699): warning C4244: '=' : conversion from 'unsigned int' to 'float', possible loss of data
    1>powder.c(1739): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(1755): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1764): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    1>powder.c(1770): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    1>powder.c(1776): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    1>powder.c(1782): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    1>powder.c(1814): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(1815): warning C4244: '*=' : conversion from 'double' to 'float', possible loss of data
    1>powder.c(1822): warning C4244: '-=' : conversion from 'double' to 'float', possible loss of data
    1>powder.c(1839): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(1840): warning C4244: '*=' : conversion from 'double' to 'float', possible loss of data
    1>powder.c(1847): warning C4244: '-=' : conversion from 'double' to 'float', possible loss of data
    1>powder.c(1865): warning C4305: '-=' : truncation from 'double' to 'float'
    1>powder.c(1866): warning C4305: '+=' : truncation from 'double' to 'float'
    1>powder.c(1871): warning C4305: '-=' : truncation from 'double' to 'float'
    1>powder.c(1872): warning C4305: '+=' : truncation from 'double' to 'float'
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Stupid STEL is giving me problems for my code. Yours did the same.