Jump to content

infyquest

Community Members
  • Posts

    68
  • Joined

  • Last visited

infyquest's Achievements

Discens

Discens (2/14)

0

Reputation

  1. I believe so, then may be it should be genericorspecificnames or generic_specific_names in the similar lines. It seems my naming sense is bad.
  2. I think it would be best to change the option name to "showgenericnames" from "howToShowNames" in the above patch
  3. I know but I need a initial review of the patch http://trac.wildfiregames.com/ticket/2375
  4. Index: source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp===================================================================--- source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp (revision 14579)+++ source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp (working copy)@@ -178,10 +178,10 @@ // new format doesn't store the entire path) #define THING1(out,outname, in,inname, prefix) \ wxASSERT( wxString(in["Object"][inname]).StartsWith(_T(prefix)) ); \- out.add(outname, wxString(in["Object"][inname]).Mid(wxString(_T(prefix)).Length()))+ out.add(outname, wxString(in["Object"][inname]).Mid(wxString(_T(prefix)).Length()).wc_str()) #define THING2(out,outname, in,inname, prefix) \ wxASSERT( wxString(in[inname]).StartsWith(_T(prefix)) ); \- out.add(outname, wxString(in[inname]).Mid(wxString(_T(prefix)).Length()))+ out.add(outname, wxString(in[inname]).Mid(wxString(_T(prefix)).Length()).wc_str()) if (wxString(in["Object"]["Material"]).Len()) {@@ -198,7 +198,7 @@ // XXX if (wxString(in["Object"]["TextureName"]).StartsWith(_T("art/textures/ui/session/portraits/ui_portrait_sheet_civ_"))) {- var.add("texture", L"temp/" + wxString(in["Object"]["TextureName"]).Mid(strlen("art/textures/ui/session/portraits/")));+ var.add("texture", wxString(wxString(L"temp/") + wxString(in["Object"]["TextureName"]).Mid(strlen("art/textures/ui/session/portraits/"))).wc_str()); } else {Index: source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.cpp===================================================================--- source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.cpp (revision 14579)+++ source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.cpp (working copy)@@ -232,19 +232,19 @@ AtObj MapSettingsControl::UpdateSettingsObject() { // map name- m_MapSettings.set("Name", wxDynamicCast(FindWindow(ID_MapName), wxTextCtrl)->GetValue());+ m_MapSettings.set("Name", wxDynamicCast(FindWindow(ID_MapName), wxTextCtrl)->GetValue().wc_str()); // map description- m_MapSettings.set("Description", wxDynamicCast(FindWindow(ID_MapDescription), wxTextCtrl)->GetValue());+ m_MapSettings.set("Description", wxDynamicCast(FindWindow(ID_MapDescription), wxTextCtrl)->GetValue().wc_str()); // map preview- m_MapSettings.set("Preview", wxDynamicCast(FindWindow(ID_MapPreview), wxTextCtrl)->GetValue());+ m_MapSettings.set("Preview", wxDynamicCast(FindWindow(ID_MapPreview), wxTextCtrl)->GetValue().wc_str()); // reveal map m_MapSettings.setBool("RevealMap", wxDynamicCast(FindWindow(ID_MapReveal), wxCheckBox)->GetValue()); // game type / victory conditions- m_MapSettings.set("GameType", wxDynamicCast(FindWindow(ID_MapType), wxChoice)->GetStringSelection());+ m_MapSettings.set("GameType", wxDynamicCast(FindWindow(ID_MapType), wxChoice)->GetStringSelection().wc_str()); // keywords {Index: source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Player/Player.cpp===================================================================--- source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Player/Player.cpp (revision 14579)+++ source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Player/Player.cpp (working copy)@@ -858,7 +858,7 @@ // name wxTextCtrl* text = controls.name; if (text->IsEnabled())- player.set("Name", text->GetValue());+ player.set("Name", text->GetValue().wc_str()); // civ wxChoice* choice = controls.civ;@@ -865,7 +865,7 @@ if (choice->IsEnabled() && choice->GetSelection() >= 0) { wxStringClientData* str = dynamic_cast<wxStringClientData*>(choice->GetClientObject(choice->GetSelection()));- player.set("Civ", str->GetData());+ player.set("Civ", str->GetData().wc_str()); } // colour@@ -887,7 +887,7 @@ { // ai - get id wxStringClientData* str = dynamic_cast<wxStringClientData*>(choice->GetClientObject(choice->GetSelection()));- player.set("AI", str->GetData());+ player.set("AI", str->GetData().wc_str()); } else // human player.set("AI", _T(""));fix is above
  5. I think I found a fix for this, I might need to add wc_str() or wchar_str() functions I will post a fix soon.
  6. latest svn version. I am using archlinux WxWigets 3.0-2 (wxgtk-3.0-2)
  7. ActorEditor.cpp ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp: In function 'AtObj ConvertToLatestFormat(AtObj)': ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:181:86: error: no matching function for call to 'AtObj::add(const char [9], wxString)' out.add(outname, wxString(in["Object"][inname]).Mid(wxString(_T(prefix)).Length())) ^ ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:188:4: note: in expansion of macro 'THING1' THING1(actor,"material", in,"Material", "art/materials/"); ^ ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:181:86: note: candidates are: out.add(outname, wxString(in["Object"][inname]).Mid(wxString(_T(prefix)).Length())) ^ ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:188:4: note: in expansion of macro 'THING1' THING1(actor,"material", in,"Material", "art/materials/"); ^ In file included from ../../../source/tools/atlas/AtlasUI/General/IAtlasSerialiser.h:21:0, from ../../../source/tools/atlas/AtlasUI/CustomControls/Windows/AtlasWindow.h:23, from ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.h:18, from ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:20: ../../../source/tools/atlas/AtlasObject/AtlasObject.h:171:7: note: void AtObj::add(const char*, const wchar_t*) void add(const char* key, const wchar_t* value); ^ ../../../source/tools/atlas/AtlasObject/AtlasObject.h:171:7: note: no known conversion for argument 2 from 'wxString' to 'const wchar_t*' ../../../source/tools/atlas/AtlasObject/AtlasObject.h:172:7: note: void AtObj::add(const char*, AtObj&) void add(const char* key, AtObj& data); ^ ../../../source/tools/atlas/AtlasObject/AtlasObject.h:172:7: note: no known conversion for argument 2 from 'wxString' to 'AtObj&' ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:181:86: error: no matching function for call to 'AtObj::add(const char [5], wxString)' out.add(outname, wxString(in["Object"][inname]).Mid(wxString(_T(prefix)).Length())) ^ ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:196:3: note: in expansion of macro 'THING1' THING1(var,"mesh", in,"ModelName", "art/meshes/"); ^ ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:181:86: note: candidates are: out.add(outname, wxString(in["Object"][inname]).Mid(wxString(_T(prefix)).Length())) ^ ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:196:3: note: in expansion of macro 'THING1' THING1(var,"mesh", in,"ModelName", "art/meshes/"); ^ In file included from ../../../source/tools/atlas/AtlasUI/General/IAtlasSerialiser.h:21:0, from ../../../source/tools/atlas/AtlasUI/CustomControls/Windows/AtlasWindow.h:23, from ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.h:18, from ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:20: ../../../source/tools/atlas/AtlasObject/AtlasObject.h:171:7: note: void AtObj::add(const char*, const wchar_t*) void add(const char* key, const wchar_t* value); ^ ../../../source/tools/atlas/AtlasObject/AtlasObject.h:171:7: note: no known conversion for argument 2 from 'wxString' to 'const wchar_t*' ../../../source/tools/atlas/AtlasObject/AtlasObject.h:172:7: note: void AtObj::add(const char*, AtObj&) void add(const char* key, AtObj& data); ^ ../../../source/tools/atlas/AtlasObject/AtlasObject.h:172:7: note: no known conversion for argument 2 from 'wxString' to 'AtObj&' ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:201:121: error: no matching function for call to 'AtObj::add(const char [8], wxString)' var.add("texture", L"temp/" + wxString(in["Object"]["TextureName"]).Mid(strlen("art/textures/ui/session/portraits/"))); ^ ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:201:121: note: candidates are: In file included from ../../../source/tools/atlas/AtlasUI/General/IAtlasSerialiser.h:21:0, from ../../../source/tools/atlas/AtlasUI/CustomControls/Windows/AtlasWindow.h:23, from ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.h:18, from ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:20: ../../../source/tools/atlas/AtlasObject/AtlasObject.h:171:7: note: void AtObj::add(const char*, const wchar_t*) void add(const char* key, const wchar_t* value); ^ ../../../source/tools/atlas/AtlasObject/AtlasObject.h:171:7: note: no known conversion for argument 2 from 'wxString' to 'const wchar_t*' ../../../source/tools/atlas/AtlasObject/AtlasObject.h:172:7: note: void AtObj::add(const char*, AtObj&) void add(const char* key, AtObj& data); ^ ../../../source/tools/atlas/AtlasObject/AtlasObject.h:172:7: note: no known conversion for argument 2 from 'wxString' to 'AtObj&' ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:181:86: error: no matching function for call to 'AtObj::add(const char [8], wxString)' out.add(outname, wxString(in["Object"][inname]).Mid(wxString(_T(prefix)).Length())) ^ ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:205:4: note: in expansion of macro 'THING1' THING1(var,"texture", in,"TextureName", "art/textures/skins/"); ^ ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:181:86: note: candidates are: out.add(outname, wxString(in["Object"][inname]).Mid(wxString(_T(prefix)).Length())) ^ ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:205:4: note: in expansion of macro 'THING1' THING1(var,"texture", in,"TextureName", "art/textures/skins/"); ^ In file included from ../../../source/tools/atlas/AtlasUI/General/IAtlasSerialiser.h:21:0, from ../../../source/tools/atlas/AtlasUI/CustomControls/Windows/AtlasWindow.h:23, from ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.h:18, from ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:20: ../../../source/tools/atlas/AtlasObject/AtlasObject.h:171:7: note: void AtObj::add(const char*, const wchar_t*) void add(const char* key, const wchar_t* value); ^ ../../../source/tools/atlas/AtlasObject/AtlasObject.h:171:7: note: no known conversion for argument 2 from 'wxString' to 'const wchar_t*' ../../../source/tools/atlas/AtlasObject/AtlasObject.h:172:7: note: void AtObj::add(const char*, AtObj&) void add(const char* key, AtObj& data); ^ ../../../source/tools/atlas/AtlasObject/AtlasObject.h:172:7: note: no known conversion for argument 2 from 'wxString' to 'AtObj&' ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:184:76: error: no matching function for call to 'AtObj::add(const char [6], wxString)' out.add(outname, wxString(in[inname]).Mid(wxString(_T(prefix)).Length())) ^ ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:217:5: note: in expansion of macro 'THING2' THING2(anim,"@file", animit,"@file", "art/animation/"); ^ ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:184:76: note: candidates are: out.add(outname, wxString(in[inname]).Mid(wxString(_T(prefix)).Length())) ^ ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:217:5: note: in expansion of macro 'THING2' THING2(anim,"@file", animit,"@file", "art/animation/"); ^ In file included from ../../../source/tools/atlas/AtlasUI/General/IAtlasSerialiser.h:21:0, from ../../../source/tools/atlas/AtlasUI/CustomControls/Windows/AtlasWindow.h:23, from ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.h:18, from ../../../source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp:20: ../../../source/tools/atlas/AtlasObject/AtlasObject.h:171:7: note: void AtObj::add(const char*, const wchar_t*) void add(const char* key, const wchar_t* value); ^ ../../../source/tools/atlas/AtlasObject/AtlasObject.h:171:7: note: no known conversion for argument 2 from 'wxString' to 'const wchar_t*' ../../../source/tools/atlas/AtlasObject/AtlasObject.h:172:7: note: void AtObj::add(const char*, AtObj&) void add(const char* key, AtObj& data); ^ ../../../source/tools/atlas/AtlasObject/AtlasObject.h:172:7: note: no known conversion for argument 2 from 'wxString' to 'AtObj&' AtlasUI.make:196: recipe for target 'obj/AtlasUI_Release/ActorEditor.o' failed make[1]: *** [obj/AtlasUI_Release/ActorEditor.o] Error 1 Makefile:80: recipe for target 'AtlasUI' failed make: *** [AtlasUI] Error 2
  8. just waiting for the naval ai to be in place, because that's one of the must have features for our AI to handle naval maps or maps with water bodies like lakes.
  9. I think the moving some part of the AI code to C++ is in consideration. might have to wait for beta 16 or 17 for it
  10. so webkit cant be considered due to licensing and v8 re-engineering takes a lot a of time and effort
  11. Its fixed after the mesa 9.2.1 installation
  12. Its now in testing branch for the archlinux, it will come out soon *yaaaay* I think we need to do the convert stuff, every now and then for the png's as we get new graphic assets from time to time.....
  13. Well, It seems I have to wait for mesa 9.2.1 for the fix
  14. raised https://bugs.freedesktop.org/show_bug.cgi?id=70130 with mesa nouveau
×
×
  • Create New...