17 Mar 12, 07:03AM
(This post was last modified: 17 Mar 12, 07:44AM by Felix-The-Ghost.)
[SELECT ALL] Code:
editing.cpp: In function 'void cursorupdate()':
editing.cpp:126: error: too few arguments to function 'void makesel(bool)'
editing.cpp:184: error: at this point in file
editing.cpp:218: warning: the address of 'bool selset()' will always evaluate as
'true'
editing.cpp:221: error: 'sel' was not declared in this scope
editing.cpp:221: error: 'selh' was not declared in this scope
editing.cpp: At global scope:
editing.cpp:53: warning: '__dummy_edittoggle' defined but not used
editing.cpp:141: warning: '__dummy___dummy_selx' defined but not used
editing.cpp:142: warning: '__dummy___dummy_sely' defined but not used
editing.cpp:143: warning: '__dummy___dummy_selxs' defined but not used
editing.cpp:144: warning: '__dummy___dummy_selys' defined but not used
editing.cpp:392: warning: '__dummy_editheight' defined but not used
editing.cpp:488: warning: '__dummy_heightfield' defined but not used
editing.cpp:489: warning: '__dummy_solid' defined but not used
editing.cpp:490: warning: '__dummy_corner' defined but not used
editing.cpp:519: warning: '__dummy_equalize' defined but not used
editing.cpp:717: warning: '__dummy___dummy_select' defined but not used
editing.cpp:718: warning: '__dummy___dummy_addselection' defined but not used
editing.cpp:719: warning: '__dummy_resetselections' defined but not used
editing.cpp:720: warning: '__dummy_edittag' defined but not used
editing.cpp:721: warning: '__dummy_replace' defined but not used
editing.cpp:722: warning: '__dummy_archvertex' defined but not used
editing.cpp:723: warning: '__dummy_arch' defined but not used
editing.cpp:724: warning: '__dummy_slope' defined but not used
editing.cpp:725: warning: '__dummy_setvdelta' defined but not used
editing.cpp:726: warning: '__dummy_editundo' defined but not used
editing.cpp:727: warning: '__dummy_copy' defined but not used
editing.cpp:728: warning: '__dummy_paste' defined but not used
editing.cpp:729: warning: '__dummy_edittex' defined but not used
editing.cpp:730: warning: '__dummy_newent' defined but not used
editing.cpp:731: warning: '__dummy_perlin' defined but not used
editing.cpp:732: warning: '__dummy_movemap' defined but not used
editing.cpp:733: warning: '__dummy_selectionrotate' defined but not used
editing.cpp:734: warning: '__dummy_selectionflip' defined but not used
editing.cpp:735: warning: '__dummy_countwalls' defined but not used
editing.cpp:736: warning: '__dummy_settex' defined but not used
mingw32-make: *** [editing.o] Error 1
Press any key to post a complaint to Ronny . . .
How did you get this to work? :P
I'm going through the errors one by one and these are novice mistakes :P
append: really rooted from just three aparent mistakes (one with a function I haven't looked at -- maybe you meant to to this)
error 1:
[SELECT ALL] Code:
if(dragging) makesel();
[SELECT ALL] Code:
makesel(dragging);
error 2:
[SELECT ALL] Code:
if(selset)
[SELECT ALL] Code:
if(selset())
error 3 is the one I'm not sure if my editing it ruined the intentions of your code:
[SELECT ALL] Code:
box(sel, (float)selh, (float)selh, (float)selh, (float)selh);
[SELECT ALL] Code:
loopv(sels) box(sels[i], (float)sels[i].h, (float)sels[i].h, (float)sels[i].h, (float)sels[i].h);
Though I bet you actually have those variables you had defined somewhere? (hopefully you're not using cubescript? :P)
The remaining errors are those variables on that line being used without ever being defined.
Oh, and when I got it to compile, pushing [E] for edit mode quits the game :P
A note: when I get it to compile without errors the command line doesn't show me the warnings for some reason. This being true I can assume the following warnings are still present:
[SELECT ALL] Code:
editing.cpp: At global scope:
editing.cpp:53: warning: '__dummy_edittoggle' defined but not used
editing.cpp:141: warning: '__dummy___dummy_selx' defined but not used
editing.cpp:142: warning: '__dummy___dummy_sely' defined but not used
editing.cpp:143: warning: '__dummy___dummy_selxs' defined but not used
editing.cpp:144: warning: '__dummy___dummy_selys' defined but not used
editing.cpp:392: warning: '__dummy_editheight' defined but not used
editing.cpp:488: warning: '__dummy_heightfield' defined but not used
editing.cpp:489: warning: '__dummy_solid' defined but not used
editing.cpp:490: warning: '__dummy_corner' defined but not used
editing.cpp:519: warning: '__dummy_equalize' defined but not used
editing.cpp:717: warning: '__dummy___dummy_select' defined but not used
editing.cpp:718: warning: '__dummy___dummy_addselection' defined but not used
editing.cpp:719: warning: '__dummy_resetselections' defined but not used
editing.cpp:720: warning: '__dummy_edittag' defined but not used
editing.cpp:721: warning: '__dummy_replace' defined but not used
editing.cpp:722: warning: '__dummy_archvertex' defined but not used
editing.cpp:723: warning: '__dummy_arch' defined but not used
editing.cpp:724: warning: '__dummy_slope' defined but not used
editing.cpp:725: warning: '__dummy_setvdelta' defined but not used
editing.cpp:726: warning: '__dummy_editundo' defined but not used
editing.cpp:727: warning: '__dummy_copy' defined but not used
editing.cpp:728: warning: '__dummy_paste' defined but not used
editing.cpp:729: warning: '__dummy_edittex' defined but not used
editing.cpp:730: warning: '__dummy_newent' defined but not used
editing.cpp:731: warning: '__dummy_perlin' defined but not used
editing.cpp:732: warning: '__dummy_movemap' defined but not used
editing.cpp:733: warning: '__dummy_selectionrotate' defined but not used
editing.cpp:734: warning: '__dummy_selectionflip' defined but not used
editing.cpp:735: warning: '__dummy_countwalls' defined but not used
editing.cpp:736: warning: '__dummy_settex' defined but not used
Anyways, I found out that it was trying to access the list of selections (which was empty) but I was able to type /select x x x x and went to edit mode and it worked (I guess you can use /select in any mode).
I don't even know what this code's intentions are. All I observe is a hilarious bug where you can define the first select anchor and the second one closing the selection is automatically updated where the cursor is pointing. Scrolling the mouse wheel while doing this is insane.
After doing all this I think I finally understand your intentions are to update the second selection by where the cursor is pointing (assumingly to select inside solids) but I can't seem to toggle this behavior for the unwanted uses of it (most of the time).
I guess I could've inferred this initially as it was in the update_cursor function :/
You were kinda like "do this code!" And I was like "well I don't know what it does, but okay!"
Pretty cool though.
edit: posting replies at 1:43am = bad post :/